Module com.gluonhq.charm.glisten
Enum BottomNavigation.Type
- java.lang.Object
-
- java.lang.Enum<BottomNavigation.Type>
-
- com.gluonhq.charm.glisten.control.BottomNavigation.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<BottomNavigation.Type>
- Enclosing class:
- BottomNavigation
public static enum BottomNavigation.Type extends Enum<BottomNavigation.Type>
An enumeration containing the available bottom navigation types that theBottomNavigation
class can use to pre-populate various properties.- Since:
- 4.0.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIXED
The FIXED bottom navigation type configures the BottomNavigation to calculate the width of each bottom navigation action and divide the width of the view by the number of actions.SHIFTING
The SHIFTING bottom navigation type configures the BottomNavigation to assign more width to the currently selected bottom navigation action.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BottomNavigation.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static BottomNavigation.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FIXED
public static final BottomNavigation.Type FIXED
The FIXED bottom navigation type configures the BottomNavigation to calculate the width of each bottom navigation action and divide the width of the view by the number of actions. The selected action item will have a scaling factor and a different color for both its graphic and text.
-
SHIFTING
public static final BottomNavigation.Type SHIFTING
The SHIFTING bottom navigation type configures the BottomNavigation to assign more width to the currently selected bottom navigation action. Moreover, the selected action item will have both its text and graphic visible where as the rest of the un-selected bottom navigation action items will only have their graphic visible. It is advised to have a selected action item before making theBottomNavigation
visible.
-
-
Method Detail
-
values
public static BottomNavigation.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BottomNavigation.Type c : BottomNavigation.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BottomNavigation.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-