InjectView 註釋

你可以使用 @InjectView 註釋注入任何檢視:

你需要:

  • 繼承自 RoboActivity
  • 設定內容檢視
  • 使用 @InjectView 註釋你的檢視

例

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

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

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