roboguice.inject
Annotation Type InjectView
@Retention(value=RUNTIME)
@Target(value={FIELD,PARAMETER,METHOD})
public @interface InjectView
Indicates that a variable member of a class (whether static or not) should be
injected with an Android view.
The value corresponds to the id of the view.
As an alternative to the id, you can supply a tag to identify the desired view.
ID will always take precendence over tag, if specified.
You must specify either an ID or a tag.
Usage example:
@InjectView(R.id.hello) protected TextView hello;
@InjectView(tag="hello") protected TextView hello;
- Author:
- Mike Burton
value
public abstract int value
- Default:
- -1
tag
public abstract String tag
- Default:
- ""
Copyright © 2012. All Rights Reserved.