public enum LayoutPolicy extends java.lang.Enum<LayoutPolicy>
TabSwitcher
.Enum Constant and Description |
---|
AUTO
If the layout should automatically adapted, depending on whether the device is a smartphone
or tablet.
|
PHONE
If the smartphone layout should be used, regardless of the device.
|
TABLET
If the tablet layout should be used, regardless of the device.
|
Modifier and Type | Method and Description |
---|---|
static LayoutPolicy |
fromValue(int value)
Returns the layout policy, which corresponds to a specific value.
|
int |
getValue()
Returns the value of the layout policy.
|
static LayoutPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LayoutPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LayoutPolicy AUTO
public static final LayoutPolicy PHONE
public static final LayoutPolicy TABLET
public static LayoutPolicy[] values()
for (LayoutPolicy c : LayoutPolicy.values()) System.out.println(c);
public static LayoutPolicy 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 nullpublic final int getValue()
Integer
valuepublic static LayoutPolicy fromValue(int value)
value
- The value of the layout policy, which should be returned, as an Integer
valueLayoutPolicy