DataBinding for Jetpack learning

Advantages of DataBinding: The project is simple and readable. Some code related to UI controls can be completed in the layout file.The findViewById() method is no longer required.Layout files can contain simple business logic. UI controls can directly bind to fields in the data model and even respond to user interaction. DataBinding is insepa ...

Posted by ianitm on Mon, 28 Mar 2022 02:18:27 +0300

Android SharedPreferences

Use of SharedPreferences Shared preferences storage features: Shared preferences is a lightweight K-V data repository built into Android, which uses xml to store data. For example, we often use it to save some lightweight data such as user login information.Only Java basic data types are supported, and custom data types are not supportedIntra ...

Posted by JoeZ on Sun, 27 Mar 2022 21:14:19 +0300

android_ Frame_ Rxjava_ Application scenario

rxjava application scenario Reprinted from: https://blog.csdn.net/a910626/article/details/79311611 rxjava in retrofit How do we use retrofit when rxjava is not used Take a login request as an example: Declare an interface request in an interface /** * Login account */ @FormUrlEncoded @POST("/maoyan/login") C ...

Posted by Design on Sun, 27 Mar 2022 04:24:20 +0300

Glide4.11 source code analysis

Glide The process of with (activity) method obtains the RequestManager object and combs out the process of binding the RequestManager and Fragment life cycle. In this article, let's take a look at the load ing process of RequestManager. RequestBuilder<Drawable> builder = requestManager.load("http://www.xxx.com/pic") First, let's see what ...

Posted by hmvrulz on Sat, 26 Mar 2022 14:05:21 +0300

After reading Effective Java, I sorted out these 59 skills!

Author: Dong GuoChao Link: https://blog.dogchao.cn/?p=70 Effective Java, Java masterpiece, required reading. If we can strictly follow the principles of this article and make strict demands on our own code with the quality of API, the coding quality will be greatly improved. The following content only records my own things, or I suggest read ...

Posted by tisource on Sat, 26 Mar 2022 05:23:03 +0300