Android Jetpack from use to source code deep cultivation [LiveData from practice to principle] (3)

In the previous articles, we introduced LiveData through a simple example requirement, so we know the benefits of using it. Then we conjectured about its principle, explored the solution step by step, and realized the LiveData framework through coding.

Android Jetpack from use to source code deep cultivation [LiveData from practice to principle] (1)
Android Jetpack from use to source code deep cultivation [LiveData from practice to principle] (2)
Android Jetpack from use to source code deep cultivation [LiveData from practice to principle] (3 )
Android Jetpack from use to source code deep cultivation [LiveData from practice to principle] (4)

In this article, we will read the source code of the official Jetpack LiveData to see whether the official implementation is consistent with the methods and solutions we want to use? Where is the inconsistency? Even, you can compare the advantages and disadvantages of the differences between the official framework and your own implementation.
This is also the benefit of this learning method, I believe everyone will gain a lot.

1 Introduction

First take a look at the previous example requirements and use the code.
MyViewM

Guess you like

Origin blog.csdn.net/baobei0921/article/details/130425597