Android MVVM architecture construction

Although MVVM architecture was also used in previous projects, I was not familiar with the whole MVVM architecture because I didn't build the overall framework myself, so I built and implemented the MVVM architecture myself this time. The components used by MVVM architecture include ViewModel, LiveData, ViewBinding/DataBinding, etc. these comp ...

Posted by impulse() on Tue, 08 Mar 2022 12:51:33 +0100

Hilt Test - Fragment trouble: this needs special treatment, starting a new stove, counterfeiting process, making empty birth, just for a Fragment.

🚪 1. Fragment report Gradle Gradle - Module: def fragment_version = "1.3.1" implementation "androidx.fragment:fragment-ktx:$fragment_version" debugImplementation "androidx.fragment:fragment-testing:$fragment_version" 😓: You see, this is not Android test or test, but debug. We don't have it! 🤗: haven't you? You have to make i ...

Posted by langer on Tue, 08 Mar 2022 05:33:34 +0100

An article takes you to the mystery of gradle from the perspective of source code

Hello, dear friends, Yien is seeing you again. Unlike the general introduction articles on the Internet, which only stay at the level of "how to use", this article understands gradle from the perspective of source code. Of course, if you haven't read my previous article "If you don't understand gradle after reading this ar ...

Posted by bhola on Sat, 05 Mar 2022 03:12:17 +0100

The ability of silent living detection can effectively avoid the risk of user real name authentication

Silent living body detection is the face living body detection capability of Huawei HMS Core machine learning service, that is, without the user's cooperation to make mouth opening, head turning, blinking and other actions, it can capture the face in real time and quickly judge whether it is a living body. The user has convenient use process an ...

Posted by geo3d on Wed, 02 Mar 2022 08:05:26 +0100

Blog dry goods | using Apache Pulsar in Kotlin

About Apache Pulsar Apache Pulsar is a top-level project of Apache Software Foundation. It is a native distributed message flow platform of the next generation cloud. It integrates message, storage and lightweight functional computing. It adopts the design of separation of computing and storage architecture, supports multi tenant, ...

Posted by blackandwhite on Tue, 01 Mar 2022 08:48:16 +0100

Things about Kotlin collaboration -- pipeline Channel

Flow is called cold flow. Since there is cold flow, there is heat flow, and pipe channel is heat flow. Channel is a concurrent and secure queue, which is mainly used to handle the communication between processes The sender and receiver are two different processes. The data sent and transmitted between them is through this pipeline, a send and ...

Posted by jeremywesselman on Sun, 27 Feb 2022 07:49:49 +0100

DataBinding data binding layout and binding expression in Android Jetpack

Layout and binding expressions With the help of the expression language, you can write expressions to handle the events assigned by the view. The data binding library automatically generates the classes needed to bind the views in the layout to your data objects. The data binding layout file is slightly different, starting with the root ...

Posted by rationalrabbit on Fri, 25 Feb 2022 12:32:24 +0100

Blog dry goods | using Apache Pulsar in Kotlin

About Apache PulsarApache Pulsar is a top-level project of Apache Software Foundation. It is a native distributed message flow platform of the next generation cloud. It integrates message, storage and lightweight functional computing. It adopts the design of separation of computing and storage architecture, supports multi tenant, persistent sto ...

Posted by Discord on Thu, 24 Feb 2022 14:37:30 +0100

Kotlin studies Chapter 1

array Part I summary review Previous link address: Kotlin studies Chapter 1 (1) Knowledge learned in the previous article: Basic data type: includes numeric type and string typeValue types: Byte, Int, Long, Float, Double. There is no packing type. Pay attention to the mark of Long type, which must be capitalized with "L"String type ...

Posted by mcirl2 on Thu, 24 Feb 2022 11:06:13 +0100

Introduction to Kotlin language foundation: Kotlin collaborative process foundation

1. Blocking and non blockingrunBlockingdelay is non blocking, thread Sleep is blocked. Explicitly use the runBlocking coroutine builder to block.import kotlinx.coroutines.* ​ fun main() { GlobalScope.launch { // Start a new collaboration in the background and continue delay(200) "rustfisher.com".forEach { print(it) delay(280) } } printl ...

Posted by laanes on Tue, 22 Feb 2022 15:34:19 +0100