public static enum TextLayoutMode.Mode extends Enum<TextLayoutMode.Mode>
Specifies the different supported Looper modes.
Enum Constant and Description |
---|
LEGACY
Robolectric's layout mode prior to 4.3.
|
REALISTIC
The new, more accurate layout mechanism.
|
Modifier and Type | Method and Description |
---|---|
static TextLayoutMode.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextLayoutMode.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextLayoutMode.Mode LEGACY
public static final TextLayoutMode.Mode REALISTIC
public static TextLayoutMode.Mode[] values()
for (TextLayoutMode.Mode c : TextLayoutMode.Mode.values()) System.out.println(c);
public static TextLayoutMode.Mode 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