资 源 简 介
Annotation Spec
Annotation
Location
Argment
Field Type
Value
e.g:
@Inject(id)
Field
id
SystemService
unused
@InjectActivityManager mActivityManager;
View/Resource
View ID or Resource ID must be specifed
@Inject(id=R.anim.tran_anim)Animation mAnimation;
@Event(clazz, id)
Method
clazz
-
Delegate class must be specified
@Inject(clazz=ViewOnClick.class, id=R.id.button1)public void onClickButton1(View view);
id
-
View ID must be specifed
How to use
STEP1 : Create a new subclass from one of following base classes.
* HaruActivity
* HaruExpandableListActivity
* HaruListActivity
* HaruTabActivity
* HaruFrameLayout
* HaruService.
STEP2 :