Recently, WHEN I was using Room, I mistakenly upgraded the database due to great carelessness. Many crashes occurred during gray scale. This article is to...
Lifecycle has been released on Android X. Lifecycle 2.4.0. The @onlifecycleEvent annotation has been deprecated and DefaultLifecycleOvserver is recommended
First said the DataBinding, which back shuoshuoMVVM architecture first article: https://juejin.im/post/6859998358174941198 DataBinding is actually MVVM
As for Alignment and Arrangement, these two interfaces are generally used to arrange the orientation of components in Componse. However, many students who have just...
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 are also many LiveDataBus implementations of reflection on the web. But the code implemented by reflection is messy, so here's a simple and elegant...
In daily development, especially in large projects, more and more activities are used to nest multiple fragments in the UI mode of development. However, the...
I'm Liang 'en Liu, an engineer from developer Relations. Today I'm bringing you Jetpack Library, which was announced two weeks ago, called Jetpack Compose, and...
Use Navigation to manage APP page jumps. Using Navigation to switch between fragments can make the code simple and intuitive. The Navigation component also supports...
Android Jetpack is a suite of libraries that make it easy to build high-quality applications that are compatible with older versions of the operating system....
Jetpack is a collection of Android components that make it easier for you to develop great Android applications. These components help you follow best practices,...
LiveData is an observable data store class. Unlike regular observable classes, LiveData has lifecycle awareness, meaning that it follows the lifecycle of other application components...
1. All business logic is separated into Controller, which is highly modularized. 2. Observer mode can update multiple views simultaneously. 1. Direct interaction between Model...
The ViewModel separates the view and logic. The Activity or Fragment is only responsible for the UI display. The ViewModel is responsible for specific network...
The DataBinding function is to eliminate the need to write view assignment, state change code, and bind the data directly to XML for automatic assignment....
When a main project references libraries, some parameters need to be initialized when the libraries are started. There are two methods: one is to inform...