|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ResourceType>
com.android.resources.ResourceType
public enum ResourceType
Enum representing a type of compiled resource.
Enum Constant Summary | |
---|---|
ANIM
|
|
ANIMATOR
|
|
ARRAY
|
|
ATTR
|
|
BOOL
|
|
COLOR
|
|
DECLARE_STYLEABLE
|
|
DIMEN
|
|
DRAWABLE
|
|
FRACTION
|
|
ID
|
|
INTEGER
|
|
INTERPOLATOR
|
|
LAYOUT
|
|
MENU
|
|
MIPMAP
|
|
PLURALS
|
|
PUBLIC
|
|
RAW
|
|
STRING
|
|
STYLE
|
|
STYLEABLE
|
|
TRANSITION
|
|
XML
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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 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 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
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getName()
public java.lang.String getDisplayName()
public static ResourceType getEnum(java.lang.String name)
name
- name of the resource
ResourceType
or null
if no match was found.public static java.lang.String[] getNames()
public java.lang.String toString()
toString
in class java.lang.Enum<ResourceType>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |