com.googlecode.androidannotations.annotations.res
Annotation Type StringRes
@Retention(value=CLASS)
@Target(value=FIELD)
public @interface StringRes
Use on fields in activity classes that should be injected with values from
R.string.*
The annotated field must be a String
The annotation value must be one of R.string.* fields. If the value is not
set, the field name will be used as the R.string.* field name.
Notice that we named it @StringResValue instead of @StringValue because the
StringValue class already exists in java.lang and does not need any import to
be used.
value
public abstract int value
- Default:
- -1
resName
public abstract String resName
- Default:
- ""
Copyright © 2010-2013. All Rights Reserved.