Singleton of design pattern
There are six principles and twenty-three design patterns in the design pattern. The six principles are: single responsibility principle, opening and closing principle, Richter substitution principle, dependency inversion principle, interface isolation principle and Dimitri principle. Twenty three design patterns: Singleton pattern, Builder pat ...
Posted by amethyst42 on Fri, 19 Nov 2021 08:47:36 +0100
Fluent implements an illustrated list
List is the most common form in App. ListView is provided in fluent to implement the list. This article will implement a list with pictures and texts through ListView.
Interface layout analysis
The list to be implemented in this chapter is shown in the figure above. After we get the interface design draft, the first thing we do in UI devel ...
Posted by stewart on Thu, 18 Nov 2021 15:51:24 +0100
I still don't understand Android's touch feedback mechanism
Recommended by Haowen: Author: riane
Let's analyze in detail what our fingers have experienced from touching various views on the screen to the end of this click event.
Event type
There are three types of touch events:
int action = MotionEventCompat.getActionMasked(event);
switch(action) {
case MotionEvent.ACTION_DOWN:
...
Posted by ricta on Thu, 18 Nov 2021 14:22:33 +0100
Android AIDL learning (server)
In the process of learning AIDL, I can't read many books and find a lot of information on the Internet. Finally, I can realize the call of AIDL. Here I write my understanding and implementation to facilitate the memo search.
The main reason is that their foundation is too poor, others write too tall, and they still can't understand a lot. Writ ...
Posted by murtoz on Thu, 18 Nov 2021 10:13:10 +0100
Android okhttp + retro fit + rxjava + hit implements the network request framework
🔥 introduce
This paper implements a network request box through okhttp + retrofit + rxjava + hit.
💥 Final code
iWanAndroidService.register(map)
.compose(ResponseTransformer.obtain())
.subscribe(registerData -> {
//Request succeeded
}, new ErrorConsumer() {
...
Posted by WhiteHawksan on Wed, 17 Nov 2021 12:30:21 +0100
Android file download - Multi file multi thread breakpoint Download
1. Preface
In my previous blog, I spent a few days doing a case of multi-threaded download, and tried to package it into my own wheel library. For example:
Android file multithreading downloadMulti thread download of Android files (II)Android single thread breakpoint DownloadAndroid file multithreading breakpoint DownloadAndroid multithre ...
Posted by InO on Wed, 17 Nov 2021 10:46:48 +0100
Analysis of textInput component in hippy react
2021SC@SDUSC
Component analysis
In the previous blog s, we have analyzed some components, including scrollview, viewPager, waterfallView, image and list view components. This time, let's interpret the textInput component.
textInput component
textInput is the basic component of input text. It provides the configuration of a variety of fea ...
Posted by nonlinear on Wed, 17 Nov 2021 03:49:15 +0100
Introduction to Android | introduction to Kotlin collaboration
Android officials recommend using concurrency to deal with asynchronous problems.Characteristics of collaborative process:Lightweight: multiple coroutines can be run on a single thread. The process supports suspension, which will not block the thread running the process. Suspending saves memory than blocking and supports multiple parallel opera ...
Posted by lead2gold on Fri, 12 Nov 2021 18:25:49 +0100
AudioTracK for Android 11 Audio framework exploration
In the previous article, we introduced the startup and initialization of AudioPolicyService and AudioFlinger services. Here's a look at what AudioTrack and AudioFlinger did.
MediaPlayer will create the co ...
Posted by dstockto on Fri, 12 Nov 2021 17:47:12 +0100
Advanced UI growth path, in-depth understanding of Android 8.0 View touch event distribution mechanism
prefaceIn the previous article, we introduced the basic knowledge of View and the implementation of View sliding. This article will bring you a core knowledge point of View, event distribution mechanism. Event distribution mechanism is not only a core knowledge point, but also a difficulty in Android. Let's analyze the transmission of events fr ...
Posted by Fira on Fri, 12 Nov 2021 15:14:06 +0100