During the development process, data binding is often required. Since we write the code repeatedly every time, sometimes we wonder if we can compile boilerplate...
Introduction When you customize a View, you will sometimes encounter some requirements like track movement, such as making an object move along a specific route,...
There are two general purposes for defining annotations. The first is an enumeration that defines annotations for type and scope checking of data. The second...
Design patterns are often used during development, and good architecture requires design patterns. The Factory design pattern is one of the creation patterns used when...
Android/Java frameworks often use compile-time annotations, and one of the key steps is how to generate Java files. We have compiled a complete and concise...
Find the Annotation interface, and then Control + H can see that Override inherits from the Annotation. Look at the Annotation documentation to see that...
I recently wrote an article about source code analysis for componentized open source frameworks (portal below). So now componentized little famous JIMU framework, is also...
Annotations are a type of metadata that can be added to Java source code. Classes, methods, variables, parameters, and packages can all be annotated. Annotations...
Many mainstream tripartite libraries now use this technique, such as ARouter, ButterKnife, etc. This paper mainly records the use process of APT. Many of the...
The Android Annotation Library (annotations for short) is a function package provided in the Android Support Library. It contains many useful meta-annotations in the form...
Glide is a fast and efficient Android image loading library that focuses on smooth scrolling. Glide provides an easy-to-use API, a high-performance, scalable decode pipeline,...
Declare statistics dot field. At this time, field 10008 is contaminated, and the number of times of opening advertisement and page 2 cannot be accurately...
Javassist is a class library that manipulates Java bytecodes, adding new methods to an already compiled class, or modifying existing methods, without the need for...
I'm sure we've come across annotations all over the place. Common frameworks such as Butterknife, Retrofit, ARouter, and so on have all been annotated, so...
Declare statistics dot field. At this time, field 10008 is contaminated, and the number of times of opening advertisement and page 2 cannot be accurately...
In Android development, many of the most commonly used third-party libraries use Annotation processors. Common examples are Butterknife, Dagger2, DBFlow, etc. There are several apis...
APT Annotation Processing Tool APT Annotation Processing Tool APT is a Tool used to process annotations. The Java files are scanned and the annotation generation...