Android Rapid Development Framework--androidannotations (Code Diet)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.