An article teaches you how to insert stubs during Android compilation so that programs can learn to write their own code.

Preface In recent years, compile-time piling technology has become more and more popular in Android circle. Whether it's ButterKnief, Dagger, VirtualAPK that can generate JAVA source code, or even Kotlin, a new language, all use compile-time pil ...

Posted on Tue, 13 Aug 2019 20:30:03 -0700 by shikhartandon

Comments under Java/Android

Links to the original text: https://www.jianshu.com/p/8b4f801bff10 What is annotation? java.lang.annotation, interface Annotation, introduced in JDK 5.0 and later versions. Annotations are special tags in code that can be read at compi ...

Posted on Tue, 06 Aug 2019 03:38:41 -0700 by mikeglaz

Snail Master's Chatting Dynamic Layout Framework: Thoughts and Implementation of Core Functions

Hello! Hello, I'm Mr. Snail. ~We met again. This article is the second one of Mr. Snail's chats about dynamic layout framework. In the last article, we explained the general idea of the framework and reviewed the basic usage of RecyclerView. So in this article, we will formally begin to build the framew ...

Posted on Wed, 31 Jul 2019 18:54:09 -0700 by paulareno

New android feature: DrawerLayout works with NavigationView

First look at the effect 20170120150737931.png The NavigationView and DrawerLayout controls have been added to the Android Design Support Library.Replace use in SlidingMenu project! Let's learn how to use DrawerLayout and NavigationView here! Add dependencies to your project: compile 'com.android.support:design:25.0.0' In Material ...

Posted on Mon, 08 Jul 2019 10:40:36 -0700 by laduch

BaseActivity: Unified Writing of Common Logic

In the last article NetworkStateView At the end of the article, we can set up a unified NetworkStateView in BaseActivity to load multi-state of the interface. So let's talk about BaseActivity today. How to set up NetworkStateView in BaseActivity and some other functions of BaseActivity? We haven't seen NetworkStateView before. Once This article ...

Posted on Sat, 06 Jul 2019 13:50:11 -0700 by joon

Android 6.0: Dynamic Rights Management Solution

Reproduced from: http://blog.csdn.net/caroline_wendy/article/details/50587230 Android version 6.0 (Api 23) has introduced a number of new features that dramatically enhance the user experience and place new burdens on programmers. Dynamic rights management is like this, making it easier for users to control their privacy and re-adapting their ...

Posted on Sat, 06 Jul 2019 09:50:43 -0700 by mm00

scrollview nested pull-down control nested recyclerview

I believe there will be many similar requirements, a list control, and then a head above the control needs to be customized, so it is not good sometimes can not be added to the head of the list control, it must nest a layer of scroll lview, no problem, then the general list control is a drop-down operation, and generally find a high collection ...

Posted on Mon, 17 Jun 2019 13:54:54 -0700 by aurigus

Android APT Technology

Android AOP Three Swordsmen: APT, AspectJ, Javassist Android APT APT(Annotation Processing Tool) parses annotations at code compilation time and generates new Java files to reduce manual code input. APT is now used in many mainstream libraries, such as Dagger 2, ButterKnife, EventBus3, etc. Representational framework: DataBinding ...

Posted on Sun, 19 May 2019 15:55:36 -0700 by bloo

Unified Management of Gradle Dependencies in Android Studio

Unified Management of Gradle Dependencies in Android Studio Original link Unified Management of Gradle Dependencies in Android Studio Why should Gradle be managed in a unified way? In a real Project, there are often multiple modules in a Project. If each Module has the same dependencies, such as v4 packages, it is tr ...

Posted on Sat, 18 May 2019 21:11:59 -0700 by ryanwood4

Android: Open source libraries and plug-ins

Explain First release January 31, 2019 Recent updates March 01, 2019 Note: Continuous updates will be made. Open source library // Gson implementation 'com.google.code.gson:gson:2.8.5' // okhttp implementation 'com.squareup.okhttp3:okhttp:3.12.1' // butterknife: View injection framework, which also supports some event h ...

Posted on Sun, 05 May 2019 09:40:37 -0700 by Otiose Dodge