First,Iam from China,my English is poll.maybe you find my codes are like freshman's or some fucking shit ,but please respect my work.
The Version: 0.0.1
1.Initial the frame like following code at the base-activity or the activity which you want to use
InitViewject.getInstance().init(context);
2.let's Go to the activity what you want to deal
Set the activity layout resource
@ContentViewInject(layout resource id)
public class MainActivity extends Activity
Initial the target view of Button:
@viewInject(id=R.id.test_btn)
private Button test_btn;
Until now,you have already finished the inital job.
3.How to bind an event?
Define the method:
public void methodName(View v){
//what are you doing?
}
@viewInject(id=R.id.test_btn,click="methodName")
private Button test_btn;
enjoy it!