The fourth chapter of Android advanced application development -- AsyncTask

**The fourth chapter of Android advanced application development -- AsyncTask** 1, What is AsyncTask? 1.AsyncTask is a lightweight (less code) asynchronous class provided by Android. 2. In order to reduce the development difficulty of asynchronous communication, AsyncTask is provided. 3.AsyncTask directly i ...

Posted by astricks on Sat, 04 Apr 2020 00:15:13 +0200

Android Pickerview selector

1. overview I remember that when I was working on the mall project, I needed to realize the three-level linkage between the province and the city in the address selection to facilitate the user to fill in the address quickly. At that time, I used an open-source control called Android wheel, which felt very easy to use. The onl ...

Posted by vikela on Fri, 03 Apr 2020 23:46:27 +0200

ReactNative: ReactContext!=Activity

In the project, there is a bookshelf View provided to react native for use. It monitors the corresponding life cycle of react native to refresh the interface. The code is as follows //ViewManager public class BookShelfManager extends SimpleViewManager<BookShelfView> { private BookShelfView mBookShelfView; @Override ...

Posted by rinjani on Fri, 03 Apr 2020 10:46:41 +0200

Retrofit+SwipeRefreshlayout+RecyclerView to implement pull-up refresh and paging load

Preface: In the process of project development, we usually have the demand of "paging load". Paging load is to display data in the form of list. On the premise of having a network, we can manually obtain more data through pull-down refresh. When there is no more data, we will be reminded that we do not have more data.     & ...

Posted by jakeklem on Fri, 03 Apr 2020 03:29:53 +0200

Solutions to conflicts when Android Scrollview nesting ViewPager + Fragment

Start with the final rendering (the image is not very clear): The top ad uses ConvenientBanner, which has little to do with this article. Only show the effect. In fact, we use NestedScrollView to achieve the above effect. There are several problems when nesting viewpagers with NestedScrollView: 1. Fragment s in vi ...

Posted by Bikkebakke on Fri, 03 Apr 2020 00:03:51 +0200

Android / Android develops two lines of code to write files to memory

Based on the code found on the Internet, thanks to the original author. The source link was not found and is not indicated here. This class can be used to write text information to memory or SD card. Only two sentences of code are needed in the whole process. Create a new class file WriteToFile.java package com.bm. ...

Posted by aneuryzma on Thu, 02 Apr 2020 21:41:24 +0200

Android system above 6.0 fails to write SD card permission

As shown in the figure, the read and write permissions of SD card are declared in mainfest file, and the error is still reported: <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"></us ...

Posted by sfmnetsys on Thu, 02 Apr 2020 20:54:47 +0200

At a glance: steps to build Retrofit2+RxJava2+ButterKnife framework

Step introduction: Code resolution: Step introduction: Add dependencies for Retrofit2 and RxJava2 libraries: Create a class that accepts the data returned by the server (the class used to process the data) Create an interface to describe network requests and configure network request parameters Create Retrofit inst ...

Posted by mobilekid on Thu, 02 Apr 2020 16:10:36 +0200

Development of React Native -- component Text

Preface Text component is a basic component in React. It is similar to TextView component on Android. It is used to display text. Besides basic display layout, this control can be nested, styled, and event handling functions can be added. Basic Usage Attribute method Here I just give some more commonly used attribute method ...

Posted by Mesden on Thu, 02 Apr 2020 14:06:38 +0200

Volley source code analysis framework

Analysis of Volley framework Recently, I am learning the Volley framework and recording my income. On the one hand, it is convenient for me to communicate with you, and on the other hand, it is convenient for me to review in the future. If there is something wrong, please correct it. In the future, we will update and i ...

Posted by desolator on Thu, 02 Apr 2020 06:29:48 +0200