@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.
This occurs AFTER 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
Copyright © 2010-2014. All Rights Reserved.