ViewPager is a class in the Android extension package v4 package
Similar to LinearLayout, the ViewPager class directly inherits the ViewGroup class and is a container in which we need to add the content we want to display.
Similar to ListV ...
Posted on Mon, 29 Jun 2020 02:15:32 -0400 by zoffi
Hello, ladies and gentlemen, last time we talked about the example of data transfer between fragments in Android, this time we will continue to talk about this example. Don't talk about it. Turn it around. Let's Talk Android!
Dear Sirs, we introduced the use of fragment parameters to transfer data betwe ...
Posted on Thu, 25 Jun 2020 23:51:32 -0400 by ryanlwh
Unable to restrain the emotions of the early morning, the humid voice of a rough man's shy rose opened quietly. Is it my aesthetic view that tiktok has seen many times in harmony?
Many of the functions I wrote are independent in my daily development, and I will consolidate and comb the overall imp ...
Posted on Tue, 16 Jun 2020 23:48:01 -0400 by Kyori
ListView is a very common part of Android development, and it is used in all kinds of APP, whether it is QQ's chat list or WeChat's official account list.
In practice, we have encountered such a problem:
Maybe I want the ListView to be nested in the ScrollView, and there are many o ...
Posted on Mon, 15 Jun 2020 23:50:55 -0400 by someone2088
Android architecture components – ViewBinding learning notes
1. Problems solved
The purpose of ViewBinding is to reduce the use of template code findViewById(int), improve development efficiency, and simplify the code of Activity and Fragment.
2. Using ViewBinding
The use of ViewBinding req ...
Posted on Sun, 14 Jun 2020 04:40:48 -0400 by Wes1890
Navigation of architecture components
Navigation component is a library that can manage complex navigation, transition animation, deep link and compile time check parameter transfer among multiple screens in the application
To use Navigation, you need to build.gradle Add dependency to:
implementation 'androidx.navigation:navigation-fragment: ...
Posted on Thu, 11 Jun 2020 00:51:42 -0400 by df75douglas
java life cycle, thread communication
1, Life cycle
The thread life cycle depends on the following figure. Around the figure, explain the meaning of its methods and the differences between different methods.
1. yield() method
yield() puts the currently running thread back in place to allow other threads with the same priority to get ...
Posted on Wed, 10 Jun 2020 00:28:40 -0400 by Chris_Mc_1985
For details about the control class of the after screen effect, see another blog written earlier:
This article is mainly based on the previous control class, to achieve another common after screen effect - edge detection.
Concept and principle part:
First of all, we need to know that ...
Posted on Mon, 08 Jun 2020 23:56:03 -0400 by jsims