How ViewModel saves state
1, Foreword
Although ViewModel has helped us deal with the data retention problem caused by page destruction and reconstruction caused by screen rotation, the data is not saved for page destruction and reconstruction caused by insufficient memory. This article mainly makes a unified improvement and arrangement according to the official doc ...
Added by centenial on Wed, 22 Dec 2021 18:26:05 +0200
Use of Android Compose
Introduction to ComposeJetpack Compose is a new library released at the 2019 Google I/O conference until release version 1.0 is released in July 2021 0 It features less KotlinCode, more convenient to complete UI development on Android platform.Why compositeJetpack Compose is Android's modern toolkit for building native UI. It simplifies and acc ...
Added by nikosft on Tue, 21 Dec 2021 07:08:03 +0200
Implementation principle analysis of Android Jetpack LifeCycle
LifeCycle
LifeCycle is a component provided by Jetpack that can sense the life cycle changes of an Activity or Fragment. This component is convenient for business to make corresponding management and changes according to the changes of business life cycle, and can also prevent business memory leakage.
First, understand the following concepts ...
Added by Stoned Gecko on Mon, 20 Dec 2021 08:09:48 +0200
[open source project sharing] a very simple and easy-to-use composite skeleton screen. Come and have a look!
Jetpack Compose is a new library released by Google at the 2009 Google I / O conference. It is a modern toolkit for building native Android UI. It has powerful tools and intuitive Kotlin API to simplify and accelerate UI development on Android. It can help developers create views with less and more intuitive code, have more powerful functions, ...
Added by kidintraffic on Wed, 15 Dec 2021 00:59:53 +0200
Android Development: explanation of Jetpack Compose Button,IconButton and other buttons
preface
This article will explain the usage of Button, iconbutton, extendedfloatingactionbutton, floatingactionbutton, icontogglebutton, outlinebutton, RadioButton and textbutton in detail. Please read below if you are interested
1: Button usage
Let's take a look at the source code of the Button (the OutlinedButton has the same properties a ...
Added by zulx on Fri, 10 Dec 2021 10:53:52 +0200
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