Enum BottomNavigation.Type

    • 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 the BottomNavigation 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 name
        NullPointerException - if the argument is null