Android CameraX enables taking photos and recording videos
1, Foreword
From Camera1 to Camera2, and now CameraX in Jetpack, Google has been committed to making it easier for Android application developers to use camera related API s and realize camera related application functions more simply and quickly; Let's learn how to use CameraX to take photos and record videos;
2, CameraX overview
CameraX is ...
Added by cringe on Tue, 08 Mar 2022 15:33:59 +0200
Room realizes unified data management - Repo
Room realizes unified data management - Repo
In the multi module environment, the data classes are written in one module separately, and the database can be accessed for addition, deletion, modification and query only by introducing them into other classes in use LitePal When using the framework, it is very convenient to find operations ...
Added by White_Coffee on Sat, 19 Feb 2022 18:51:49 +0200
Android Data-Binding Implementation Principle
This article is based on:
androidx.databinding:databinding-runtime:3.4.1
1. Introduction to Data-Binding
A data binding library is a supporting library that allows you to bind interface components in a layout to data sources in your application using declarative formats rather than programmatically. Detailed documentation reference:
https:/ ...
Added by nikkio3000 on Thu, 10 Feb 2022 18:43:03 +0200
Kotlin's concurrency
Know channel
channel is a concurrent and secure queue, which can connect processes and realize the communication of different processes. Several types of channels are defined in the Library. They can store multiple elements internally, but they are different in terms of whether the send call can be suspended. For all Channel types, the behavi ...
Added by geo115fr on Mon, 07 Feb 2022 14:33:32 +0200
Implementation principle of Android Navigation component
The use of navigation components is not the focus of this article. For specific use, please refer to Official documents , the navigation component framework is implemented through fragments. Its core classes can be mainly divided into three NavGraph, NavHostController and NavHostFragment. The functions of these three classes are:
NavGraph: ...
Added by jbdphp on Mon, 07 Feb 2022 13:25:53 +0200
Jetpack Compose layout - custom layout
In the first part Quick start of Jetpack Compose Technology In this article, we briefly introduced Compose, so let's learn the layout of Compose. Since the layout involves a lot of content, it will be written separately. The layout mainly includes: Layout Basics,Material components and layout , custom layout Use ConstraintLayout in Compose.
...
Added by gemmerz on Mon, 07 Feb 2022 08:58:42 +0200
jetpack must know how to use three basic Lifecycle
In daily development, some time-consuming tasks or objects need to be associated with some life cycles of Activity or Fragment to release resources or schedule tasks. Our usual practice is to execute the relevant code in the corresponding life cycle function, but this will lead to the need to write a lot of template code, and life cycle managem ...
Added by ediehl on Wed, 02 Feb 2022 16:48:07 +0200
Jetpack All In Compose ? See the use of various jetpack libraries in compose
The main purpose of Jeptack Compose is to improve the development efficiency of UI layer, but a complete project needs the cooperation of logic layer and data layer. Fortunately, many component libraries in Jetpack have been adapted to Compose, and developers can use these Jetpack libraries to complete functions other than UI.
Bloom is a Demo ...
Added by gregsmith on Sat, 29 Jan 2022 21:57:44 +0200
Jetpack - defects of LiveData component and Countermeasures
1, ForewordIn order to solve the problem of chaotic architecture design since the development of android app, Google launched the family bucket solution of jetpack MVVM. As the core of the whole solution, LiveData, with its life cycle security, memory security and other advantages, even has the trend to gradually replace EventBus and RxJava as ...
Added by Sakujou on Tue, 18 Jan 2022 19:35:11 +0200
Jetpack Compose navigation animation
What is page navigation animation
The page navigation animation of Compose is equivalent to the page switching animation in Activity, such as the animation entering when opening Activity and the animation exiting when closing Activity.
All the navigation parts mentioned later refer to Compose navigation.
Current situation of page navigation ...
Added by mistertylersmith on Thu, 30 Dec 2021 20:30:52 +0200