Gradle and AGP build API: further improve your plug-in!

Welcome to read MAD Skills Collection The third article on building API between Gradle and AGP. In the last article< Gradle and AGP build API: how to write plug-ins >You learned how to write your own plug-ins and how to use them Variants API. If you prefer to learn about this through video, please Click here see.In this article, you will ...

Added by fowlerlfc on Thu, 06 Jan 2022 05:22:56 +0200

android_ Foundation_ Handler use

Reprinted from: https://www.10qianwan.com/articledetail/809922.html Detailed explanation of Android Handler use case What is a handler? Handler can send and process message objects or runnable objects, which are associated with a thread. Each instance of handler is associated with a thread and a thread's message queue. When created (adsbyg ...

Added by chamade76 on Thu, 06 Jan 2022 04:13:05 +0200

14. Draggable drag control of fluent widgets

Draggable series components allow us to drag components. Draggable The Draggable component has two parameters that must be filled in. The child parameter is a child control and the feedback parameter is a component that moves with drag. The usage is as follows: Draggable( child: Container( height: 100, width: 100 ...

Added by igorlopez on Wed, 05 Jan 2022 22:52:36 +0200

Kotlin's Flow practice

Flow asynchronous flowknowcharacteristicBuilder and contextstart-upCancel and cancel detectionbufferOperatorTransition operatorEnd operatorcombinationFlattenabnormalexception handlingcompleteHow to represent multiple values?The suspend function can return a single value asynchronously, but how to return multiple calculated values asynchronously ...

Added by Mohit_Prog on Wed, 05 Jan 2022 19:11:37 +0200

RxJava3. Getting started with X -- creating and transforming operators

RxJava3. Getting started with X (2) -- create operators and transform operators Create Operator 1, Foundation creation 1.create() Use the Create operator to Create a complete Observable, which can pass onNext, onError, onCompleted and other events. Demo code: Observable.create((ObservableOnSubscribe<Integer>) e -> { ...

Added by Qazsad on Wed, 05 Jan 2022 12:44:40 +0200

Explain the possible memory leakage caused by Handler and the solutions at one time

Author: shrimp Mi Jun 1. Improper use of handler? First find out what is improper use of} Handler? Generally, it has the following characteristics: Handler adopts anonymous internal class or internal class extension, and holds the reference of external class {Activity} by default: // Anonymous Inner Class override fun onCreate(savedInst ...

Added by minds_gifts on Wed, 05 Jan 2022 12:03:06 +0200

Android first experience - data storage

Persistence technology Data persistence refers to saving those instantaneous data in memory to the storage device to ensure that these data will not be lost even when the mobile phone or computer is turned off. The data stored in memory is in transient state, while the data stored in storage device is in persistent state. Persistence techn ...

Added by Nat on Wed, 05 Jan 2022 10:11:08 +0200

Zoom in - Android R

Introduction to amplification function The zoom in function can be turned on in the mobile phone settings → more settings → accessibility → vision → zoom in function. This function can enlarge the screen. After enlarging the screen, you can drag the screen position. Windows that can be enlarged: app, status bar, etc Windo ...

Added by akillez on Wed, 05 Jan 2022 09:26:17 +0200

Android audio and video development foundation: Video Capture - system API Foundation

preface In the development of Android audio and video, the online knowledge points are too fragmented and it is very difficult to learn by yourself. However, Jhuster, a big audio and video player, put forward "Android audio and video from getting started to improving - task list". This article is one of the Android audio and video ta ...

Added by RedMaster on Tue, 04 Jan 2022 23:09:43 +0200

RxJava3.x Getting Started Guide - filter operators

RxJava3.x Getting Started Guide (IV) -- filter operator 1, Filter events based on specified event criteria 1.filter() Function: filter the events sent by the observer through certain logic. If true is returned, the event will be sent, otherwise it will not be sent Demo code: Observable .just(1,2,3,4,5) ...

Added by stb74 on Tue, 04 Jan 2022 20:54:56 +0200