ARouter Source Analysis 1: Initialization Process

ARouter Source Analysis II: navigation Process Arouter is simple to use @Route(path = "/image/imageActivity") class MainActivity : AppCompatActivity() { @Autowired(name = "tip") @JvmField var mTip: String? = "" override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) ARouter ...

Added by Jenk on Tue, 21 Dec 2021 16:04:08 +0200

Android custom view using PathEffect to achieve dynamic effects

Catalogue of series articles Android custom view using PathEffect to achieve dynamic effects The article finally has the source code preface In the last article of this type, the offset is changed to achieve dynamic effect. The method used is drawArc. This article still changes the offset and uses the subclass of PathEffect. design ...

Added by kath421 on Tue, 21 Dec 2021 13:53:09 +0200

Use of Android Compose

Introduction to ComposeJetpack Compose is a new library released at the 2019 Google I/O conference until release version 1.0 is released in July 2021 0 It features less KotlinCode, more convenient to complete UI development on Android platform.Why compositeJetpack Compose is Android's modern toolkit for building native UI. It simplifies and acc ...

Added by nikosft on Tue, 21 Dec 2021 07:08:03 +0200

Android performance - RocketX

1, Background descriptionWith the increasing project volume, the compilation speed also increases. Sometimes a modification needs to wait for several minutes. Based on this general situation, RocketX is introduced to improve the speed of full compilation by dynamically replacing the module with aar in the compilation process.2, Effect display2. ...

Added by davidlenehan on Tue, 21 Dec 2021 00:43:58 +0200

Android development from getting started to giving up (10) adapting GridView

This blog discusses how to display a GridView. In the first two blogs, we used ListView. When displaying a ListView, we used the Adapter. The function of the Adapter is to adapt the data source to the list control. A ListAdapter is also required to display the GridView. Let's start with activity_main.xml code <?xml version="1.0" encoding=" ...

Added by Morthian on Mon, 20 Dec 2021 21:18:23 +0200

android framework project development case - dynamically hide Icon 2 on Launcher

The code was written in the last class. Unfortunately, we found that it crash ed when we clicked, because CHANGE_COMPONENT_ENABLED_STATE permission requires system permission 2021-12-17 23:09:15.078 4198-4198/com.android.things.privateapplication1 E/AndroidRuntime: FATAL EXCEPTION: main Process: com.android.things.privateapplication1, PID: ...

Added by Lashiec on Mon, 20 Dec 2021 15:48:52 +0200

The Android timer repeatedly starts the Activity problem (actually it is the pit that sends the broadcast)

Project scenario: During the project development two days ago, in case of such a scenario, a time clock function needs to be done. After the time clock is turned on, an Activity pops up after the specified time (relative time) arrives. Problem Description: The above scenario is not difficult to implement. You can send a broadcast by turnin ...

Added by FatStratCat on Mon, 20 Dec 2021 11:17:57 +0200

Implementation principle analysis of Android Jetpack LifeCycle

LifeCycle LifeCycle is a component provided by Jetpack that can sense the life cycle changes of an Activity or Fragment. This component is convenient for business to make corresponding management and changes according to the changes of business life cycle, and can also prevent business memory leakage. First, understand the following concepts ...

Added by Stoned Gecko on Mon, 20 Dec 2021 08:09:48 +0200

AOP learning notes (Android)

AOP learning notes (Android) AOP: aspect oriented programming is a technology that realizes the unified maintenance of program functions through dynamic agents during precompiling and running. AOP is the continuation of OOP (object-oriented programming). Using AOP, each part of business logic can be isolated, so as to reduce the coupling be ...

Added by NevadaSam on Mon, 20 Dec 2021 05:05:15 +0200

Android framework: Binder fully parses and understands everything

Link: https://juejin.im/post/6869953788388573192 Get ServiceManager from Java layer In the previous article, I went to the getIServiceManager() method to get the ServiceManager object. getIServiceManager() //frameworks/base/core/java/android/os/ServiceManager.java private static IServiceManager getIServiceManager() { if (sServiceManager ...

Added by Cal on Sun, 19 Dec 2021 22:43:42 +0200