public enum ResType extends Enum<ResType>
Enum Constant and Description |
---|
ATTR_DATA |
BOOLEAN |
CHAR_SEQUENCE |
CHAR_SEQUENCE_ARRAY |
COLOR |
COLOR_STATE_LIST |
DIMEN |
DRAWABLE |
FILE |
FLOAT |
FRACTION |
INTEGER |
INTEGER_ARRAY |
LAYOUT |
NULL |
STYLE |
TYPED_ARRAY |
Modifier and Type | Method and Description |
---|---|
static ResType |
inferFromValue(String value)
Parses a resource value to infer the type
|
static ResType |
inferType(String itemString) |
static ResType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResType DRAWABLE
public static final ResType ATTR_DATA
public static final ResType BOOLEAN
public static final ResType COLOR
public static final ResType COLOR_STATE_LIST
public static final ResType DIMEN
public static final ResType FILE
public static final ResType FLOAT
public static final ResType FRACTION
public static final ResType INTEGER
public static final ResType LAYOUT
public static final ResType STYLE
public static final ResType CHAR_SEQUENCE
public static final ResType CHAR_SEQUENCE_ARRAY
public static final ResType INTEGER_ARRAY
public static final ResType TYPED_ARRAY
public static final ResType NULL
public static ResType[] values()
for (ResType c : ResType.values()) System.out.println(c);
public static ResType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null