Androidannotatios Brief Introduction:
Androidannotations is an open source framework that allows you to develop your Android quickly, allowing you to focus on what really matters. Making the code more streamlined makes the project easier to maintain, and its goal is "Fast Android development.easy maintainance".
Characteristics:
- Dependency injection was used.
- Simplified threading Model
- Event bindings.
- REST Client
- No magic: No magical, meaning: Androidannotations at compile time will produce a subclass, you can see this subclass, see how it works.
Environment configuration:
The most important thing to note is: Use androidannotations to remember, compile time will generate a subclass, the name of this subclass is after the original class with an underscore "_", for example, this example produces a subclass named " Myactivity_ ", this requires you to register this activity in the
Androidmanifest.xml Change myactivity to myactivity_, use myactivity_ to represent this class, such as jumping from another activity This program is going to be used this way .
①: Create a Libs and Compile-libs folder,
② put Androidannotations–x.x.x.jar into Libs folder, put Androidannotations-x.x.x-api file in the Compile-libs folder,
③ Right-click Project: Properties, Java complier tick the right "Enable project specific Settings" and confirm the Compiler below ... IS 1.6
④annotation Processin The right check box is all selected.
⑤java Compler, Annotation processin, add Jars, add Androidannotations-xxx.jar.
Android Androidannotatios Framework detailed