Introduction: Androidannotations is an open-source framework that relies on injection to simplify the code structure and develop quickly, making structural code clearer and reducing code duplication. For the future we do automated testing and automated buried point development will improve the development efficiency. There are some differences with our previous use of Android development habits, let's look at the use and advantages of this framework.
Features: (1) Dependency injection: including View,extras, system services, resources, etc.
(2) A simple threading model that runs on a UI thread or a background thread through the annotation representation method
(3) Event binding: Represents the response event of a view through annotation, without writing an internal class
(4) Rest client: Define the Client interface to automatically generate the implementation of the rest request
(5) Not as complex as you might think: androidannotations just generates the appropriate subclass at compile time
(6) Does not affect the application performance: only 50KB, completed at compile time, does not have the effect on the runtime.
PS: Compared to Roboguice: Roboguice is reflected through runtime read annotations, so it may affect application performance and androidannotations generate subclasses at compile time, so there is no performance impact
Use:
Project Address: Https://github.com/excilys/androidannotations contains demo
Document Description: Https://github.com/excilys/androidannotations/wiki
Official website: http://androidannotations.org/Open this URL to see the use of the framework before and after the use of the framework code comparison, can be found after use, the code is much simpler.
Quick start See also: http://blog.csdn.net/nupt123456789/article/details/23790161
additional Annotations list : https://github.com/excilys/androidannotations/wiki/AvailableAnnotations
Android Rapid Development Framework--androidannotations (Code Diet)