Glide caching mechanism
Glide caching mechanism
Glide cache mechanism
Glide's cache is divided into two types: one is memory cache and the other is hard disk cache. The memory cache includes weak reference cache HashMap and LruCache, and the hard disk cache is DiskLruCache. If there is no URL in the cache and no URL in the cache on the hard disk, the request is ...
Added by devang23 on Mon, 03 Jan 2022 05:39:21 +0200
Analysis of android touch event delivery process
Due to the needs of the project, you need to understand the data transfer process of android touch. After reading the code, record the process for later reference.
This article is based on the open source code of Android 11. All codes can be viewed and downloaded at the address officially provided by aosp. The specific process of Android 11 ma ...
Added by dsds1121 on Mon, 03 Jan 2022 03:42:14 +0200
Android beginner animation
Reference resources: Android animation summary
1. Frame animation
That is, play a series of pictures in order to achieve the animation effect.
design sketch: Implementation method:
Create three bitmaps in the drawable directory, which are three pictures to play
a_0.xml
<vector xmlns:android="http://schemas.android.com/apk/res/and ...
Added by silent on Mon, 03 Jan 2022 02:25:42 +0200
Shorthand of End Code Content for Android
Integrated Development Environment
AS Version SDK-API simulator (omitted from this section)
Layout Design
style="@style/Style Name"
Click Event Binding
public class LoginActivity extends AppCompatActivity implements View.OnClickListener{
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
...
Added by turbolemon on Mon, 03 Jan 2022 00:57:58 +0200
Glide source code learning - life cycle
Glide source code learning - life cycle
Advantages and disadvantages of Glide advantage: 1. Diversified media loading 2. Lifecycle integration 3. Efficient cache strategy 4. Low memory overhead
Disadvantages: The use method is complex Because of its powerful function, there are many methods used, and the source code is complex and large
...
Added by reeferd on Sun, 02 Jan 2022 23:05:17 +0200
[Kotlin beginners] simple analysis and use of generics
About the author: CSDN blog expert, Huawei cloud sharing expert certification
Series column: Kotlin beginner
Learning and communication: three people must have my teacher; Choose the good and follow it, and change the bad.
catalogue
1, Generic usage
1.1 advantages of generics
1.2 generic classes
1.3 generic functions
1.4 generic int ...
Added by JoeF on Sun, 02 Jan 2022 22:37:07 +0200
Fluent - Ali P7 tells me the ultimate screen adaptation scheme!!!
I believe that every mobile developer can't avoid this problem, that is, screen adaptation
At present, there are many mobile devices, and the mobile screen of different devices is also different.
At present, mobile terminal development should be adapted to different devices, whether it is mobile native development, applet, H5 page.
So in thi ...
Added by mathewvp on Sun, 02 Jan 2022 20:46:45 +0200
Android Getting Started tutorial | listener mode (use in Java and Android)
Listener mode (observer mode) can reduce the coupling between objects and decouple two interdependent calling classes.Facilitate modular development. Developers of different modules can focus on their own code.Listeners are used to listen to events of interest to themselves, and perform customized operations when receiving events of interest to ...
Added by Brusca on Sun, 02 Jan 2022 20:36:27 +0200
UiAutomator2+Pytest+Allure+PO Model for Android Automated Testing
Introduction to Uiautomator2
uiautomator2 Is a library for UI automation of Android devices using Python. The underlying layer is based on Google uiautomator, which provides a library of uiautomators that can take and manipulate any control property of any APP on the screen
Environment Setup
Install JDK, see This article Install Android SD ...
Added by zoki on Sun, 02 Jan 2022 18:24:42 +0200
Interviewer: today's headlines start very quickly. What optimization do you think may have been done?
prefaceThere are numerous articles on startup optimization on the Internet, with the same content. Most of them list some time-consuming operations, such as asynchronous loading, lazy loading, etc.During the interview, if the question about startup optimization is only answered superficially, the time-consuming operation should be placed in the ...
Added by jpschwartz on Sat, 01 Jan 2022 05:39:57 +0200