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...
The architecture is relatively clear. After all, it is the simplest one among the three musketry. The core of it is ViewModelProvider and ViewModelStore. The...
As of AndroidX Activity 1.0.0, ComponentActivity becomes a base class for FragmentActivity and AppCompatActivity. As the saying goes, "Every cause must have fruit", with a...
In normal times, when using RecyclerView drop-down refresh to update the data first and then calling Adapter. The notifyDataSetChanged full quantity update, modify the entries...
Because SQLite is a relational database, you can specify relationships between objects. While most object-relational mapping libraries allow entity objects to refer to each other,...
From the logs, we can see that when screen rotation occurs, the memory address of MainViewModel before rotation is consistent with that of MainViewModel after...
Jetpack Compose is Google's latest framework for declaratively drawing UIs. This framework can effectively improve UI reuse, programming speed, and UI drawing efficiency.
Many Android projects use Jetpack Navigation for page switching. Navigation is highly abstract in design, only responsible for Navigation logic, not concerned with the specific...
The environment is configured to use ActivityResultContract. We need to add dependencies to the Gradle file. Here I use the Alpha03 version using methods ActivityResultContract...
Room is an abstraction layer provided on TOP of SQLite. In order to take full advantage of SQLite's powerful features, while also more robust access...
Lifecycles are a very important concept in Jetpack: Lifecycles such as LiveData and ViewMode depend on Lifecycles. Common components with a life cycle are, of...
Room is officially a persistent repository that provides an abstraction layer on SQLite, powerful and reliable SQL object mapping capabilities, and support for LiveData and...
This article introduces users of Tab, LeadingIconTab, TabRow, and ScrollableTabRow. TabRow and ScrollableTabRow are similar to the TabLayout of the previous View system
Room is an abstraction layer provided on TOP of SQLite. In order to take full advantage of SQLite's powerful features, while also more robust access...
In What's New in Architecture Components, there is a short presentation on View Binding that compares view Binding with existing solutions, And further discusses why...
Knowledge Dependency Injection (DI); Dependency injection decouples code for reuse, refactoring, and testing. Dependency injection classes often need to reference other classes. You can get...
Google I/O has released a series of utility tools to assist Android developers, called Jetpack, that enable developers to quickly and easily create high-quality applications...
Lifecycle is one of the most fundamental aspects of the Jetpack family. Lifecycle makes it much easier and more efficient for developers to build business...
Jetpack Compose is a next-generation toolkit for Building native interfaces for Android. It enables you to develop applications quickly and with less code with powerful...
This article looks at the uses of BoxWithConstraints, Spacer,Divider, Card, and ConstraintLayout. Spacer is actually very simple, is the role of white space, space. Take...