|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=CLASS) @Target(value=METHOD) public @interface AfterViews
Methods annotated with @AfterViews
will be called after
Activity.setContentView(int)
is called by the generated activity.
setContentView(View)
which is called at the
end of super.onCreate(). Any view depending code should be done in an
AfterViews
annotated method.
The method MUST have zero parameters.
There MAY be several methods annotated with @AfterViews
in the same
activity.
Example :@EActivity(R.layout.main) public class MyActivityTwo extends Activity { @ViewById TextView myTextView; @AfterViews void initViews() { myTextView.setText("test); } }
AfterInject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |