|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<ScreenOrientation>
com.android.resources.ScreenOrientation
public enum ScreenOrientation
Screen Orientation enum.
This is used in the manifest in the uses-configuration node and in the resource folder names.
| Enum Constant Summary | |
|---|---|
LANDSCAPE
|
|
PORTRAIT
|
|
SQUARE
|
|
| Method Summary | |
|---|---|
static ScreenOrientation |
getByIndex(int index)
|
static ScreenOrientation |
getByShortDisplayName(java.lang.String name)
|
static ScreenOrientation |
getEnum(java.lang.String value)
Returns the enum for matching the provided qualifier value. |
static int |
getIndex(ScreenOrientation orientation)
|
java.lang.String |
getLongDisplayValue()
Returns a long string for display value. |
java.lang.String |
getResourceValue()
Returns the resource string. |
java.lang.String |
getShortDisplayValue()
Returns a short string for display value. |
boolean |
isFakeValue()
Whether the value is neither used for device nor resources. |
boolean |
isValidValueForDevice()
Whether the value actually used on device. |
static ScreenOrientation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ScreenOrientation[] |
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, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ScreenOrientation PORTRAIT
public static final ScreenOrientation LANDSCAPE
public static final ScreenOrientation SQUARE
| Method Detail |
|---|
public static ScreenOrientation[] values()
for (ScreenOrientation c : ScreenOrientation.values()) System.out.println(c);
public static ScreenOrientation 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 static ScreenOrientation getEnum(java.lang.String value)
value - The qualifier value.
public java.lang.String getResourceValue()
ResourceEnum
getResourceValue in interface ResourceEnumpublic java.lang.String getShortDisplayValue()
ResourceEnum
getShortDisplayValue in interface ResourceEnumResourceEnum.getLongDisplayValue()public java.lang.String getLongDisplayValue()
ResourceEnum
getLongDisplayValue in interface ResourceEnumResourceEnum.getShortDisplayValue()public static int getIndex(ScreenOrientation orientation)
public static ScreenOrientation getByIndex(int index)
public static ScreenOrientation getByShortDisplayName(java.lang.String name)
public boolean isFakeValue()
ResourceEnum
isFakeValue in interface ResourceEnumpublic boolean isValidValueForDevice()
ResourceEnum
isValidValueForDevice in interface ResourceEnum
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||