Jetpack DataStore is a data storage solution that allows you to store key-value pairs or typed objects using protocol buffers. DataStore uses Kotlin coroutines and...
After ViewPager2 was released, TabLayout added a useful intermediate class called TabLayoutMediator to implement the binding and sliding effect of TabLayout and ViewPager2. Today we...
One. initialize one. onCreate two. Three navigation operation. Returns the event distribution 1. LifecycleOnBackPressedCancellable create 2. Add Cancelable to onBackPressedCallback
NavigationGraph is an XML resource file that contains all of the applied pages and the relationships between them. This is where fragments are placed. NavHostFragement...
Whether you're requesting permissions in an application, selecting a file from a file management system, or expecting data from a third-party application, passing data between...
Jetpack DataStore is a data storage solution that uses Kotlin coroutines and Flows to access data in an asynchronous, consistent transaction manner, and is now...
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...
LiveData is an Android Jetpack component that implements Lifecycle consistency with the help of Lifecycle management. Control notification of data changes when the Lifecycle is...
Modifier Elements Decorates or adds actions to the orderly, immutable collection of Compose UI elements. For example, background, fill, and click event listeners decorate lines,...
Jetpack provides WorkManager to perform some tasks, and since executing tasks involves task creation, task properties, task execution conditions, how to perform tasks, and so...
Navigation is a framework for navigating between "target functions" in Android apps, and the framework provides a consistent API, whether the target functions are implemented...
In response to changes in components with a lifecycle, a common pattern is to implement component-dependent operations in Activity and Fragment lifecycle methods. But this...
In this way, onActivityResult can retrieve data from the previous interface. This method is very useful, not only in the same application, but also from...
This article will introduce the Slider, CircularProgressIndicator and LinearProgressIndicator usage A: the Slider the Slider is similar to the traditional Seekbar, let's
Performance optimization NDK and audio and video development due to the NDK and audio and video development, involving a particularly large amount of knowledge,
LifeCycle components are used to distribute the life of objects with a LifeCycle, such as activities and fragments, so that other objects can change their...
With so much going on with Jetpack Compose, there is a certain amount of Interoperability concern about using a new technology for an existing project....
In this article we will introduce the use of AndroidView, ComposeView, Pager and SwipeToRefreshLayout. One: AndroidView (Compose uses View in swarm) when we want
Jetpack Compose provides us with a number of gesture modifiers that are sufficient for common business needs, but if we need to customize gestures, we...
Introduction to WorkManager's key capabilities: Easy scheduling of deferred asynchronous tasks that can run even after exiting the application or restarting the device. This article...