Use Jetpack DataStore for data storage

Welcome to jetpack DataStore, an improved new data storage solution designed to replace the original SharedPreferences. Jetpack DataStore is developed based on Kotlin collaboration and Flow, and provides two different implementations: proto DataStore and preferences DataStore. Proto DataStore can store objects with types (implemented with proto ...

Added by username123 on Wed, 12 Jan 2022 21:53:18 +0200

Android DataBinding from getting started to advanced

DataBinding is a framework officially released by Google. As its name suggests, it is data binding. It is an implementation of MVVM mode on Android. It is used to reduce the coupling between layout and logic and make the code logic clearer. Compared with MVP, MVVM actually replaces the Presenter layer with the ViewModel layer. DataBinding can o ...

Added by stormx on Wed, 12 Jan 2022 21:46:41 +0200

note_44: Event distribution

Event Distribution Reference resources: The Android Event Distribution Mechanism is fully understood, leading you to a thorough understanding of the source code (above)The Android Event Distribution Mechanism is fully understood, leading you to a thorough understanding of the source code (next)Detailed mechanisms for distributing Android ev ...

Added by homerjay on Wed, 12 Jan 2022 19:00:40 +0200

Gradle multi-channel packaging (dynamically set App name, application icon, replace constant, change package name, change channel)

First put a complete multi-channel / multi environment packaged configuration, and then explain it. Achieved: Different environments and package names;Modify different strings in different environments XML resource file;Modify the specified constant in different environments;For different environments, modify androidmanifest Channel varia ...

Added by pea on Wed, 12 Jan 2022 12:05:26 +0200

The ultimate means of Android package volume optimization

preface There is no need to say more about the importance of package size. Package size directly affects users' downloading, retention, and even some manufacturers' pre installed mandatory requirements must be less than a certain value. However, with the iterative development of the business, the application will become larger and larger, a ...

Added by fri on Tue, 11 Jan 2022 16:30:21 +0200

Application of new Android technology -- Virtual Assistant

Virtual assistant client (Android) Use the virtual assistant client application to chat with your virtual assistant and set it as the default assistant on your device. preparation install Android Studio . download Virtual assistant client source code . Create a virtual assistant To set up the virtual assistant environment. On the new ...

Added by jv2222 on Tue, 11 Jan 2022 15:54:58 +0200

Creation of Android Window

Knowledge points Reference link About creating suspended windows First, you need to get WindowManager WindowManager manager = (WindowManager) this.getSystemService(Context.WINDOW_SERVICE); Add parameters to the window (size, location, type...) WindowManager.LayoutParams viewParam = new WindowManager.LayoutParams(); Then you can set ...

Added by catgurl_ashley on Tue, 11 Jan 2022 14:49:45 +0200

Flutter realizes the effect of seat selection in the cinema!

IntroductionI received a demand for imitation cinemas. I almost searched Baidu, Google and stack overflow last week. We can only write one by ourselves if we don't find the effect realized by fluent. This article only talks about ideas, and you need to do it yourself. As long as you understand the following ideas, the implementation is very sim ...

Added by sharke on Tue, 11 Jan 2022 12:10:49 +0200

Android development art exploration learning notes Chapter 2 IPC

Upload the local study notes of previous work recently Here are the first three chapters of Android art development exploration The so-called IPC is the abbreviation of inter process communication, which means data interaction between processes. Common schemes include pipeline, named pipeline, shared memory, message queue and semaphore. The ...

Added by franknu on Mon, 10 Jan 2022 23:06:59 +0200

Kotlin + buildSrc: better manage Gadle dependencies!

In order to make full use of the advantages of Android Plugin for Gradle 3.0 +, it is becoming more and more common to split Android projects into multiple modules. However, with the increase of the number of modules, we will soon encounter the confusion of dependency management.There are three different ways to manage Gradle dependencies:Manua ...

Added by alcedema on Mon, 10 Jan 2022 14:10:39 +0200