Android @InjectView annotation


Example

You can inject any view using the @InjectView annotation:

You'll need to:

  • Inherit from RoboActivity
  • Set your content view
  • Annotate your views with @InjectView

Example

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

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

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