Android jetpack ---- use of livedata

LiveData introduction LivaData is a observable data container class. Specifically, LiveData can be understood as a data container, which packages the data and makes the data become an observer. When the data changes, the observer can be notified. Unlike regular observable classes, LiveData can perceive the life cycle of activities, fragments, ...

Added by jakep on Sun, 26 Sep 2021 20:27:30 +0300

Android jetpack ----- ViewModel basic usage

1. Bridge between view and data model When the function of the page (Activity/Fragment) is relatively simple, we usually write all the business logic related to UI interaction and data acquisition in the page. However, in the case of complex page functions, the amount of code will change very much, which also violates the "single function ...

Added by rodrigocaldeira on Tue, 21 Sep 2021 21:59:03 +0300