Several points that Kotlin entrustment must pay attention to

Delegation mode is a good alternative to inheritance. It is also a feature of kotlin language. It can implement delegation mode gracefully. It is also indispensable in the development process, but it is often underestimated. So let's pay attention to it today to fully grasp the characteristics and principles of kotlin delegation. 1, Delegate c ...

Posted by Anyaer on Mon, 24 Jan 2022 02:50:15 +0100

Jetpack Compose measurement process source code analysis

What will you learn in this article Through a code scenario, analyze the source code with the Layout function as the entry, and answer some questions. For example, if setting the size through the Modifier works? How is the measure method of the MeasurePolicy interface called? What is the measurement process in the Layout? How does the control ...

Posted by dman779 on Sun, 23 Jan 2022 20:40:02 +0100

Our use of DiffUtil may be biased

Our use of DiffUtil may be biased The front is my daily account. I think it looks boring. You can jump directly to the essence section Advantages of DiffUtil When I first came into contact with DiffUtil, I had a lot of good feelings for it, including: The algorithm sounds very nb and must be a good thing;The refresh logic of RecyclerVi ...

Posted by leapingfrog on Sun, 23 Jan 2022 15:32:45 +0100

01 Android Development Basics

XML layout file <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:orientation="vertical" > <TextView android:id="@+id/question_text_view" android:layout_width="wrap_conte ...

Posted by anthonydamasco on Sun, 23 Jan 2022 14:53:59 +0100

Android gracefully handles repeated clicks

For Android apps on general mobile phones, the main interaction mode is click. After the user clicks, the App may update the UI in the page, open a new page, or initiate a network request. The Android system itself does not deal with repeated clicks. If users click multiple times in a short time, there may be problems such as opening multiple p ...

Posted by Nathan__02 on Sun, 23 Jan 2022 05:17:49 +0100

Audio and video learning C language introduction

preface Now it is more and more difficult for Android junior and intermediate development engineers to find a satisfactory job. Of course, those with strength do not worry about a good job. If you happen to be a junior and intermediate engineer who wants to advance the direction of audio and video or is interested in NDK technology, you must b ...

Posted by MissiCoola on Sat, 22 Jan 2022 22:41:10 +0100

Exploration of NDK development in Android studio

Some time ago, due to the competition, I didn't have time to write a blog. Now I can finally make up an article. I always wanted to learn some knowledge of NDK development, but I didn't start it. There was an opportunity for NDK related projects. I consulted some materials and recorded some experience and methods I learned here. In fact, the ...

Posted by oldmanice on Sat, 22 Jan 2022 18:48:21 +0100

Beauty camera GPUImage/openGL camera preview performance analysis and optimization

preface At present, the main functions of the mobile camera sdk have been basically developed, and the product has been online for a long time. Looking back on the development cycle, there are many knowledge points in the design of beauty camera, the realization of basic functions is relatively simple, and there are many ready-made open source ...

Posted by tomboy78 on Sat, 22 Jan 2022 14:04:25 +0100

[Android] implementation of multi layout from zero foundation to soaring ListView Item

2.5.1 implementation of listview item multi layout Introduction to this section: This section is the last section of the ListView section, which brings you the implementation of ListView multi layout items. What is ListView Item multi layout? For example, QQ chat list: If it is made with a ListView, there are two different items on a L ...

Posted by weaselandalf on Sat, 22 Jan 2022 10:31:19 +0100

42. Detailed explanation of GridView component of fluent

GridView GridView can build a two-dimensional grid list, and its default constructor is defined as follows: GridView({ Key? key, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController? controller, bool? primary, ScrollPhysics? physics, bool shrinkWrap = false, EdgeInsetsGeometry? paddin ...

Posted by statrat on Sat, 22 Jan 2022 07:18:54 +0100