The ViewModel stores and manages data related to the interface in a life-cycle manner. When the system destroys or recreates an Activity/Fragment, the data stored...
The Androidx.lifecycle package provides classes and interfaces that you can use to build life-cycle-aware components. To use lifecycle requires declaring a dependency: listen for the...
The Jetpack Search post was launched to find 50 Jetpack enthusiasts to explore the principles of Jetpack and the gap between theory and engineering practice.
Compose ConstraintLayout is mainly used to construct complex layouts, avoiding Column, Row, and Box nesting, and improving development efficiency. Note: Compose and Constraintlayout are not...
Foreword A while ago, I wrote several articles about Android startup optimization, mainly from two aspects. Home page layout optimization, from conventional layout nesting optimization...
In the last article, I shared my understanding of architecture and described the evolution process of architecture from an ideological level. Many of you would...
LiveData defines an observable data store class, literally translated as LiveData (is a data holder that wraps a layer around the source data, which can...
Kotlin-android-extensions extension has been deprecated and its Parcelable functionality has been migrated to kotlin-Parcelize. **ViewBinding** is recommended for ViewBinding. The advantage of this plugin is...
According to a survey we've done, developers want Android to maintain a library of useful components and architectural practices to lower the bar for mid-to-large...
There is currently a Chinese manual project for Jetpack Compose, which aims to help developers better understand and master the Compose framework. This article was...
This article mainly introduces the fragment startup process, other content, such as return stack, will be updated later, please pay attention to. Feel free to...
Google has recently updated several new Jetpack members, Hilt, Paging 3, App Startup, and more. Paging3SimpleWithNetWork uses Coil (Kotlin image loading library), Databinding (Databinding), Anko...
ViewModelScope, may be many students in use, but do not know the principle, today to find out. Recommended reasons: 1. Automatic cancellation does not cause...
Jetpack is a suite of libraries that help developers follow best practices, reduce boilerplate code and write code that runs consistently across Android versions and...