android pull-up load more show all data solutions

When I use the BaseQuickAdapter universal adapter to pull up and load more data, no matter whether I slide the interface or not, the pull-down loading has been loading more data, which does not meet the requirements of pulling down and starting to load more data at last. No more nonsense, layout: <?x ...

Posted by Jocke on Mon, 28 Oct 2019 12:32:04 -0700

Do you know all four points of Android Navigation?

In JetPack, there is a component called Navigation. As the name implies, it is a page Navigation component. Compared with other third-party Navigation, the difference is that it is specially designed for Fragment page management. It is very useful for the App of a single Activity, because the presentation of App pages based on an Activity is d ...

Posted by immobilarity on Mon, 28 Oct 2019 05:08:46 -0700

Code completion fast food tutorial - 30 lines of code witness miracle

Code completion fast food tutorial (1) - 30 lines of code witness miracle Here is a code completion model I wrote with more than 30 lines of code, including many blank lines and comments. Let's see the effect first. Completion effect cases Let's take a look at the common (Python, Keras) Known: y_t ...

Posted by psych0 on Sun, 27 Oct 2019 03:33:51 -0700

Android 02 file storage

1. test 1. From the perspective of code visibility. Black box test, test code invisible through documents. Automated tests are tested by scripting. White box test, programmers write code to test. 2. Granularity from test. Unit test, integration test, system test. 3. From the level of violence. Pressur ...

Posted by shamilton on Sun, 27 Oct 2019 00:32:10 -0700

Python multi thread crawling bucket map expression pack

I. application technology: Lxml: parsing web pages Requests Library: get web page information re: replace illegal characters os: process filename Queue: Secure multithreading Urlib: download the acquired pictures II. Design idea: Here, the producer consumer model is u ...

Posted by Spitfire on Sat, 26 Oct 2019 11:19:23 -0700

Android source code analysis: Based on Handler and Looper to intercept global crash, monitor ANR, etc.

I believe that many people will have a question about why we need to read the source code, but we can't use it at work. This is a great problem. We start from the use, and then analyze the implementation principle of these uses, so as to reflect the significance of reading the source code. Block global crash (main thread) based on Handler and ...

Posted by gkelley091565 on Fri, 25 Oct 2019 23:21:35 -0700

Solution for online preview of files in uni app

Just passed, I also wish you all good health, everything goes well and no more bugs in your future life. I. Preface I wrote an article about uploading directory file: Solution of directory file upload (not only pictures and videos) in uni app system , this time to solve the file preview problem.   uni-app It is a framework that uses Vue.js to d ...

Posted by ShawnK on Thu, 24 Oct 2019 19:17:06 -0700

Gradle custom plug in

Use version 5.6.2 Plug-ins are used to encapsulate the build logic and some common configurations. Encapsulate reusable build logic and default conventions into plug-ins for use by other projects. You can use your favorite language to develop plug-ins, but in the end it's compiled into bytecode to run in the JVM. Gradle has two plug-ins, scr ...

Posted by grilldan on Thu, 24 Oct 2019 06:49:40 -0700

Do you really use Java to customize annotations?

Notes:Annotation provides a formal way for us to add information to the code, which makes it very convenient for us to use the data in source code, compile time and run time. Annotation is introduced in JAVA SE5, which makes the code cleaner and easier to read, and can realize compile time type checking, etc. When creating a class or interface ...

Posted by typo on Wed, 23 Oct 2019 20:15:44 -0700

Save pictures for quick app

There is a hole in the saved image in the quick application. If you step on it, you will be hit. Here, you should also distinguish Huawei from other manufacturers. Although there is no problem with the debugger provided by Huawei and the official suppliers, Huawei mobile phones cannot be saved after the application goes online. 1. different poi ...

Posted by ignorant on Wed, 23 Oct 2019 11:10:52 -0700