1. CustomSingleChildLayout Test environment: 2. Understand CustomSingleChildLayout 4. The offsets of the child components are shown below, and you can offset the child components to...
Mobile phones generally provide two types of Internet access: Wifi or 3G/4G Internet access. Wifi Internet access is actually the use of network cards through...
Kotlin extension functions/Attributes In Kotlin, you can extend the functionality of a class whose code cannot be modified. For example, we can not modify the...
In Android development, the need to limit quick button clicking (button stabilization) is a common requirement. In this article, I will introduce an approach to...
Before the introduction of property animation, Android already had a Tween Animation. The new Animator was introduced because of the limitations of tween animations. ValueAnimator...
1. Introduction On April 7, 2021, Android team officially released RecyclerView 1.2.0 version. There are two major changes from version 1.1.0: ConcatAdapter added: This Adapter...
When I first started using the Kotlin-Android-Extensions plug-in, I found it very comfortable. Instead of writing a cumbersome findViewByid method or introducing a ButterKnife reflection...
Singleton pattern, should be a high frequency of use of a design pattern. Let's review class initialization. Before the class is instantiated, the JVM performs...
Recently, I took some time to imitate the animation effect _^_ of zhihu Daily's infinite rotation map and indicator switch. The code implementation is not...
The MyCustomPainter above does nothing for clarity and normally draws custom effects within the Paint method. The shouldRepaint method usually returns true if the attributes...
Set the structure of the whole project, including a three-module APP, Library and WEAR. Contains the core attributes of the app, which will override their...
In addition, you can use the catch operator to catch exceptions. The onCompletion operator was covered in the previous article Flow VS RxJava2. OnCompletion, however,...
Generics generate Java generics, a new feature introduced in JDK1.5, are parameterized types. A parameterized type is a type that controls parameter limits through the...
One of the benefits of using animation in Svelte is that you don't need to download additional packages. Animation and transitions are built into Svelte....
1: different parent class Hashtable HashMap 2: different Capacity Hashtable HashMap 3: different thread safety HashMap: no lock Hashtable: multiple locks
Retrofit: A wrapper around a RESTful HTTP Web request framework. The web request work is essentially done by OkHttp, whereas Retrofit is only responsible for...
Whether engaged in Android Application development, is also android system development, should encounter Application non-response (ANR, Application Not Responding) problem, when the Application can Not...
In the afternoon, I installed hongmeng's IDE. The whole process is recorded below. If it is Android development, basic need not see, front-end development partners...
Create the SurfaceTexture on Android, register it with the Flutter engine via FlutterJNI, and return the Texture ID to the Flutter application layer. The application...
In Android development, we often encounter multiple styles of text, such as parts of bold, parts of color, in addition to multiple TextView concatenation we...
Data stream: a bidirectional byte stream within an established connection that can carry one or more messages. Message: A complete sequence of frames corresponding to...
In Flutter, asynchronous tasks are mainly realized through Timer and microtask. In this article, the principle of Flutter Timer is described to realize asynchronous tasks...
The Android installation Package suffix is.apk, which stands for Android Package. In the process of APK packaging and compilation, the Javac tool is involved to...
Fuchsia OS, Google's new operating system, has launched its developer website, which provides technical documentation for developers to participate in the development process. Google has...