|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=CLASS) @Target(value=TYPE) public @interface EView
Should be used on View
classes to enable usage of
AndroidAnnotations.
AfterInject
annotated method.
Any view related code should happen in an AfterViews
annotated
method.
If the class is abstract, the enhanced view will not be generated. Otherwise,
it will be generated as a final class. You can use AndroidAnnotations to
create Abstract classes that handle common code.
Example :@EView public class CustomButton extends Button { @StringRes(R.string.test) String res; @AfterViews void initViews() { setText(res); } }
AfterInject
,
AfterViews
,
ViewGroup
,
How to build a custom component.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |