public enum Toolbar.BackCommandPolicy
- Object
- Enum<Toolbar.BackCommandPolicy>
- Toolbar.BackCommandPolicy
ImplementsComparable<Toolbar.BackCommandPolicy>
The behavior of the back command in the title
Enum constants
ALWAYS | Show the back command always within the title bar on the left hand side |
AS_REGULAR_COMMAND | Show the back command always but shows it with the UIID standard UIID |
AS_ARROW | Show the back command always as a back arrow image from the material design style |
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 |
NEVER | Never show the command in the title area and only set the back command to the toolbar |
Methods
public static Toolbar.BackCommandPolicy[] values() | |
public static Toolbar.BackCommandPolicy valueOf(String name) |
Inherited methods
Enum constant details
ALWAYS
ALWAYSShow the back command always within the title bar on the left hand
side
AS_REGULAR_COMMAND
AS_REGULAR_COMMANDShow the back command always but shows it with the UIID standard UIID
AS_ARROW
AS_ARROWShow the back command always as a back arrow image from the material
design style
ONLY_WHEN_USES_TITLE
ONLY_WHEN_USES_TITLEShows the back command only if the
backUsesTitleBool theme
constant is defined to true which is the case for iOS themesWHEN_USES_TITLE_OTHERWISE_ARROW
WHEN_USES_TITLE_OTHERWISE_ARROWShows the back command only if the
backUsesTitleBool theme
constant is defined to true on other platforms uses the left arrow
material iconNEVER
NEVERNever show the command in the title area and only set the back
command to the toolbar
Method details
values
public static Toolbar.BackCommandPolicy[] values()valueOf
public static Toolbar.BackCommandPolicy valueOf(String name)