public static enum Toolbar.BackCommandPolicy extends Enum<Toolbar.BackCommandPolicy>
Enum Constant and Description |
---|
ALWAYS
Show the back command always within the title bar on the left hand
side
|
AS_ARROW
Show the back command always as a back arrow image from the material
design style
|
AS_REGULAR_COMMAND
Show the back command always but shows it with the UIID standard UIID
|
NEVER
Never show the command in the title area and only set the back
command to the toolbar
|
ONLY_WHEN_USES_TITLE
Shows the back command only if the
backUsesTitleBool theme
constant is defined to true which is the case for iOS themes |
WHEN_USES_TITLE_OTHERWISE_ARROW
Shows the back command only if the
backUsesTitleBool theme
constant is defined to true on other platforms uses the left arrow
material icon |
Modifier and Type | Method and Description |
---|---|
static Toolbar.BackCommandPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Toolbar.BackCommandPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
public static final Toolbar.BackCommandPolicy ALWAYS
public static final Toolbar.BackCommandPolicy AS_REGULAR_COMMAND
public static final Toolbar.BackCommandPolicy AS_ARROW
public static final Toolbar.BackCommandPolicy ONLY_WHEN_USES_TITLE
backUsesTitleBool
theme
constant is defined to true which is the case for iOS themespublic static final Toolbar.BackCommandPolicy WHEN_USES_TITLE_OTHERWISE_ARROW
backUsesTitleBool
theme
constant is defined to true on other platforms uses the left arrow
material iconpublic static final Toolbar.BackCommandPolicy NEVER
public static Toolbar.BackCommandPolicy[] values()
for (Toolbar.BackCommandPolicy c : Toolbar.BackCommandPolicy.values()) System.out.println(c);
public static Toolbar.BackCommandPolicy 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