Handler asynchronous message processing mechanism
Asynchronous Message processing in Android mainly consists of four parts: Message, Handler, MessageQueue and Looper.
Message: responsible for inter thread message delivery
Handler: used to send and receive information
MessageQueue: the queue used to store messages. Each thre ...
Posted by hedge on Sat, 21 Dec 2019 10:06:39 -0800
Open the frontactivity, open the ToActivity through the button to return the result, and at the same time add the data to the intent,
Fill TextView with data in onCreate method of ToActivity.
Press the return button to pass the ToActivity data to FromActivity, verify the returned result in onActivityResult metho ...
Posted by Deany on Sat, 21 Dec 2019 09:23:21 -0800
1. Open RedActivity and click the screen to enter BlueActivity. At this time, RedActivity moves out to the left and BlueActivity moves in to the left
2. Click the back button, BlueActivity moves out right and RedActivity moves in right
Default jump mode:
Effect of this case:
1, Test class
1. Red Activ ...
Posted by jaylee on Thu, 19 Dec 2019 07:14:00 -0800
* Role superclass:
* Follow the design principles, find out the parts that may need to change in the application, and separate them,
* Don't mix with code that doesn't need to change.
* We found that the display, attack, defend and run of each character could change, so we had to write this independently.
* Then accordi ...
Posted by morphius on Fri, 13 Dec 2019 12:59:55 -0800
What will you learn after reading this article?
RecyclerView adds a head, a tail, or a view somewhere in the list list
RecyclerView+SwipeRefreshLayout for drop-down refresh
Paging Load Data
List optimization scheme
Use Glide to load pictures, press the back key while sliding, and App c ...
Posted by severndigital on Sun, 01 Dec 2019 12:02:03 -0800
Why write this series of blogs?
Because in the Android development process, generics, reflection, annotations will be used, almost all frameworks will use at least one or two of the above knowledge, such as Gson, generics, reflection, annotations, Retrofit also used generics, reflection, annotations. It is very important for us to learn these k ...
Posted by madmindz on Thu, 10 Oct 2019 02:21:26 -0700
As an Android developer, first look at some familiar code:
Toolbar toolbar = findViewById(R.id.toolbar);
new ViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.xxx, parent, false)));
Non-ellipsible code like this, which appears in large numbers everywhere, is copied ov ...
Posted by majik92 on Thu, 19 Sep 2019 18:51:04 -0700
In the previous case, we used some controls of the system to generate our custom controls by combining. The implementation of the custom controls can also be accomplished by inheriting View from the custom class. Beginning with this blog, we inherited View through a custom class to implement some of our custom controls.
We learn through a case, ...
Posted by simonsays on Sun, 25 Aug 2019 21:40:56 -0700
IntentService, which can be seen as a combination of Service and Handler Thread, stops automatically after completing its mission, and is suitable for scenarios where UI-independent tasks need to be handled by worker threads.
IntentService is a class that inherits from Service and handles asynchronous requests. There is a ...
Posted by abhi_madhani on Wed, 17 Jul 2019 14:20:16 -0700
TabLayout is a container control that provides horizontal display of Tab. It's often used in conjunction with ViewPager. I'll give you a full explanation of its usage. I haven't seen it in more detail than I have.
This is the class under the Android Design package, which is the UI package ...
Posted by MinDFreeZ on Mon, 15 Jul 2019 16:35:23 -0700