InjectView annotation
suggest changeYou 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;
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents