Annotation Types Summary |
AfterInject |
Methods annotated with @AfterInject will be called after the
constructor is called in an enhanced class. |
AfterViews |
Methods annotated with @AfterViews will be called after
Activity.setContentView(int) is called by the generated activity. |
App |
Injects the application. |
Background |
Should be used on method that must be run in a background thread. |
Bean |
Injects an instance of a class annotated with EBean |
BeforeCreate |
Deprecated. |
Click |
Should be used on click listener methods in activity classes
The method may have zero or one parameter, that MUST be of type
android.view.View . |
EActivity |
Should be used on Activity classes to enable usage of AndroidAnnotations
Any view related code should happen in an AfterViews annotated
method. |
EApplication |
Should be used on android.app.Application classes to enable usage of
AndroidAnnotations
Most annotations are supported in EApplication classes |
EBean |
Should be used on custom classes to enable usage of AndroidAnnotations
Any view related code should happen in an AfterViews annotated
method. |
EProvider |
Use this annotation to enhance an Android ContentProvider |
EReceiver |
Use this annotation to enhance an Android BroadcastReceiver |
EService |
Use this annotation to enhance an Android Service |
EView |
Should be used on custom classes that extend View to enable usage of
AndroidAnnotations
Any view related code should happen in an AfterViews annotated
method. |
EViewGroup |
Should be used on custom classes that extend ViewGroup to enable usage of
AndroidAnnotations
Any view related code should happen in an AfterViews annotated
method. |
Extra |
Use on Extra fields in activity classes. |
FromHtml |
|
Fullscreen |
Should be used on Activity classes that must be fullscreen
The activity must be annotated with EActivity . |
ItemClick |
Should be used on item click listener methods for AdapterView classes
The method may have 0 or 1 parameter, that will be the object from the
adapter, at the selected position. |
ItemLongClick |
Should be used on item long click listener methods for AdapterView classes
The method may have 0 or 1 parameter, that will be the object from the
adapter, at the selected position. |
ItemSelect |
Should be used on item selected listener methods for AdapterView classes
The method may have 1 or 2 parameters. |
LongClick |
Should be used on long click listener methods in activity classes
The method may have zero or one parameter, that MUST be of type
android.view.View . |
NoTitle |
Should be used on Activity classes that must have no title. |
OptionsItem |
Should be used on option items listener methods in activity classes
The method may have zero or one parameter, that MUST be of type
android.view.MenuItem . |
OptionsMenu |
Should be used on Activity classes to set the id of the options menu. |
RoboGuice |
Should be used on Activity classes that use the RoboGuice framework |
RootContext |
Use it on Context fields in EBean classes
The field MUST be of a type that extends android.content.Context. |
SystemService |
Use it on manager fields in activity classes |
Touch |
Should be used on touch listener methods in activity classes
The method may have one or two parameters, the first parameter must be a
android.view.MotionEvent and the second one must be a android.view.View. |
Trace |
Use this annotation to log at runtime the execution time of the targeted
method. |
Transactional |
Should be used on method that must be transactional. |
UiThread |
Should be used on method that must be run in the Ui thread |
UiThreadDelayed |
Should be used on method that must be run in the Ui thread, after the
specified amount of time elapses. |
ViewById |
Use it on View fields in activity classes
The field MUST be of a type that extends android.view.View. |