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