ResultApi Jump in Android
1. Preface
Previously, when jumping from page A to page B, receiving the result from page B usually uses onActivityForResult() to receive the data, but since the jump and return data are not in one place, it is more difficult to maintain. And if a page is likely to go to many places, returning results in one place is also detrimental to de ...
Posted by january_9th on Thu, 23 Dec 2021 23:32:22 +0100
android_jetpack_paging introduction
Reprinted from: https://cloud.tencent.com/developer/article/1772873
1, Paging introduction
In Android application development, we often need to display a large amount of data in the form of list. These data may come from the network or local database . In order to avoid loading a large amount of data at one time, it is necessary to page th ...
Posted by Stuph on Sat, 20 Nov 2021 11:12:40 +0100
Jetpack: ViewModel user guide, detailed analysis of implementation principle!
brief introduction
In order to better divide the functions, Android provides us with the ViewModel class, which is specially used to store the data required by the application page. ViewModel can be understood as something between View and Model. It acts as a bridge so that the View and data can not only be separated, but also maintain c ...
Posted by nlhowell on Sun, 05 Sep 2021 05:56:24 +0200