InjectView 注释

你可以使用 @InjectView 注释注入任何视图:

你需要:

  • 继承自 RoboActivity
  • 设置内容视图
  • 使用 @InjectView 注释你的视图

例

@InjectView(R.id.textView1) TextView textView1;

@InjectView(R.id.textView2) TextView textView2;

@InjectView(R.id.imageView1) ImageView imageView1;