InjectResource annotationsuggest change
You can inject any type of resource, Strings, Animations, Drawables, etc.
To inject your first resource into an activity, you’ll need to:
- Inherit from RoboActivity
- Annotate your resources with @InjectResource
@InjectResource(R.string.app_name) String name; @InjectResource(R.drawable.ic_launcher) Drawable icLauncher; @InjectResource(R.anim.my_animation) Animation myAnimation;
Found a mistake? Have a question or improvement idea? Let me know.
Table Of Contents