Kotlin writes custom ViewGroup

Recommended by Haowen: Author: IAn2018 With the blessing of Kotlin, the composition recently implemented by Android makes it easier and faster to write UI. There is no need to worry about layout nesting or declarative UI. So there are so many advantages of composition. Is there a "way out" for native writing? Today, I'd like to sh ...

Posted on Tue, 23 Nov 2021 16:59:10 -0500 by dotMoe

Android Getting Started tutorial | okhttp + retro use

OkHttp + Retrofit usage example. From introducing dependencies, writing interfaces, to initiating network requests.Introduce dependencyIntroduce dependencies and use Retrofit2.implementation 'com.squareup.retrofit2:retrofit:2.1.0' implementation 'com.squareup.retrofit2:converter-gson:2.1.0' implementation 'com.squareup.retrofit2:adapter-rxjava: ...

Posted on Tue, 23 Nov 2021 03:33:50 -0500 by g7pwx

Memory optimization for Android performance optimization

prefaceTo become an excellent Android Developer, you need a complete Knowledge system , here, let's grow up as we think ~.`Tips: This is the basic chapter of exploring Android memory optimization. If you don't master Android memory optimization, you are advised to study it systematically.`As we all know, memory optimization can be said to be on ...

Posted on Mon, 22 Nov 2021 22:54:17 -0500 by kir10s

Android AIDL learning (client)

Move up   Android AIDL learning (server) Today, let's look at how the client implements the call. Let's first create a client project, AClient Development environment: Android Studio 3.6.2 Where to keep it, you can keep it anywhere according to your habits.     To realize the call of AIDL, we need to provide AIDL service as our ...

Posted on Mon, 22 Nov 2021 14:00:48 -0500 by jtp51

Analysis of App signature and encryption and decryption in an automobile community

1, Target Jiaxuan's long and short sentences say: BMW carved cars are fragrant all over the road. Since then, fragrant car beauty has become standard. No, boss Li hasn't talked for a few mm, and he's ready to change cars again. Today, our goal is an auto community App v8.0.1. 2, Steps Shelling Boss Li said that this App is very drag. It se ...

Posted on Mon, 22 Nov 2021 03:04:09 -0500 by brauchii

Android S method of capturing various profile s

1. Prepare the environment Here we are talking about our own method: the general idea is to limit all dex. Even if there is no limit, only the default quicken mode is used, Find the place where the compilerFilter is set in the build. All of them have been changed. How much is there (some parts do not need to be modified. You can also refe ...

Posted on Sun, 21 Nov 2021 21:52:02 -0500 by lucy

[Android learning notes] basic usage of RecyclerView 1

1, Brief introduction 1 what is RecyclerView? A flexible view for providing a limited window into a large data set. RecyclerView is a scrolling list of elements displayed according to the dataset. 2 what are the characteristics of recyclerview? a. Optimized ListView b. ViewHolder ---- encapsulate the view c. The layoutmanager layo ...

Posted on Sun, 21 Nov 2021 17:17:27 -0500 by rathersurf

Android Glide 3, app keep alive interview questions

================== [Android Glide 3.7.0 source code analysis (VII), detailed graphics transformation and decoding]( )The role of RecyclableBufferedInputStream in mark(int marklimit) and reset() methods has been mentioned. This paper discusses the specific implementation ideas mark(int marklimit) is used to create a repeatable read area in t ...

Posted on Sun, 21 Nov 2021 05:18:54 -0500 by Gmunky

Fragment management and kernel of Android component kernel, retrofit analysis

Set the FragmentManagerImpl of the fragment Set the tag of the fragment Set the mContainerId and mFragmentId of the fragment Insert an op of type_ Add operation to the end of the linked list A class is used here: static final class Op { Op next;//Next operation node Op prev;//Previous operation node int cmd;//Operat ...

Posted on Sun, 21 Nov 2021 02:39:15 -0500 by TangoGirl

Jetpack LiveData source code analysis

1, LiveData overview LiveData is an observable data holder class. LiveData is located under the android.lifecycle package and has the ability to sense the life cycle, such as the life cycle of Activity, Fragment, Service, etc. This perception means that there is no need to manually handle the life cycle when using, so as to avoid problems such ...

Posted on Sat, 20 Nov 2021 19:29:40 -0500 by kkeim