LabelVisibilityMode
public
abstract
@interface
LabelVisibilityMode
implements
Annotation
com.google.android.material.bottomnavigation.LabelVisibilityMode
|
This @interface is deprecated.
Please use instead.
Label visibility mode enum for bottom navigation.
The label visibility mode determines whether to show or hide labels in the navigation items.
Setting the label visibility mode to
NavigationBarView.LABEL_VISIBILITY_SELECTED
sets
the label to only show when selected, setting it to
NavigationBarView.LABEL_VISIBILITY_LABELED
sets the label to always show, and
NavigationBarView.LABEL_VISIBILITY_UNLABELED
sets the label to never show.
Setting the label visibility mode to
NavigationBarView.LABEL_VISIBILITY_AUTO
sets
the label to behave as "labeled" when there are 3 items or less, or "selected" when there are 4
items or more.
Summary
Inherited methods
|
From interface
java.lang.annotation.Annotation
abstract
Class<? extends Annotation>
|
annotationType()
|
abstract
boolean
|
equals(Object arg0)
|
abstract
int
|
hashCode()
|
abstract
String
|
toString()
|
|
Constants
LABEL_VISIBILITY_AUTO
public static final int LABEL_VISIBILITY_AUTO
Label behaves as "labeled" when there are 3 items or less, or "selected" when there are 4 items
or more.
Constant Value:
-1
(0xffffffff)
LABEL_VISIBILITY_LABELED
public static final int LABEL_VISIBILITY_LABELED
Label is shown on all navigation items.
Constant Value:
1
(0x00000001)
LABEL_VISIBILITY_SELECTED
public static final int LABEL_VISIBILITY_SELECTED
Label is shown on the selected navigation item.
Constant Value:
0
(0x00000000)
LABEL_VISIBILITY_UNLABELED
public static final int LABEL_VISIBILITY_UNLABELED
Label is not shown on any navigation items.
Constant Value:
2
(0x00000002)