roboguice.inject
Annotation Type InjectResource


@Retention(value=RUNTIME)
@Target(value={FIELD,PARAMETER,METHOD})
public @interface InjectResource

Indicates that a variable member of a class (whether static or not) should be injected with an Android resource. The value corresponds to the id of the resource.
You may specify the name of the resource instead of the id using name(), which will use Resources.getIdentifier(String, String, String) to resolve the resource by name. Usage example:
@InjectResource(R.string.hello) protected String hello;
@InjectResource(name="com.myapp:string/hello") protected String hello;

Author:
Mike Burton

Optional Element Summary
 String name
           
 int value
           
 

value

public abstract int value
Default:
-1

name

public abstract String name
Default:
""


Copyright © 2012. All Rights Reserved.