public enum ResourceType extends java.lang.Enum<ResourceType>
| Enum Constant and Description |
|---|
AAPT
This type is used for elements dynamically generated by the parsing of aapt:attr nodes.
|
ANIM |
ANIMATOR |
ARRAY |
ATTR |
BOOL |
COLOR |
DECLARE_STYLEABLE |
DIMEN |
DRAWABLE |
FONT |
FRACTION |
ID |
INTEGER |
INTERPOLATOR |
LAYOUT |
MENU |
MIPMAP |
NAVIGATION |
PLURALS |
PUBLIC
This is not actually used.
|
RAW |
SAMPLE_DATA
Not an actual resource type from AAPT.
|
STRING |
STYLE |
STYLE_ITEM
Represents item tags inside a style definition.
|
STYLEABLE |
TRANSITION |
XML |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDisplayName()
Returns a translated display name for the resource type.
|
static ResourceType |
getEnum(java.lang.String name)
Returns the enum by its name as it appears in the XML or the R class.
|
java.lang.String |
getName()
Returns the resource type name, as used by XML files.
|
static java.lang.String[] |
getNames()
Returns an array with all the names defined by this enum.
|
java.lang.String |
toString() |
static ResourceType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ResourceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResourceType ANIM
public static final ResourceType ANIMATOR
public static final ResourceType ARRAY
public static final ResourceType ATTR
public static final ResourceType BOOL
public static final ResourceType COLOR
public static final ResourceType DECLARE_STYLEABLE
public static final ResourceType DIMEN
public static final ResourceType DRAWABLE
public static final ResourceType FONT
public static final ResourceType FRACTION
public static final ResourceType ID
public static final ResourceType INTEGER
public static final ResourceType INTERPOLATOR
public static final ResourceType LAYOUT
public static final ResourceType MENU
public static final ResourceType MIPMAP
public static final ResourceType NAVIGATION
public static final ResourceType PLURALS
public static final ResourceType RAW
public static final ResourceType STRING
public static final ResourceType STYLE
public static final ResourceType STYLEABLE
public static final ResourceType TRANSITION
public static final ResourceType XML
public static final ResourceType PUBLIC
public static final ResourceType AAPT
public static final ResourceType STYLE_ITEM
public static final ResourceType SAMPLE_DATA
public static ResourceType[] values()
for (ResourceType c : ResourceType.values()) System.out.println(c);
public static ResourceType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null@NonNull public java.lang.String getName()
@NonNull public java.lang.String getDisplayName()
@Nullable public static ResourceType getEnum(@NonNull java.lang.String name)
name - name of the resourceResourceType or null if no match was found.@NonNull public static java.lang.String[] getNames()
public java.lang.String toString()
toString in class java.lang.Enum<ResourceType>