LabelVisibilityMode

@Retention(value = RetentionPolicy.SOURCE)
public annotation LabelVisibilityMode


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 LABEL_VISIBILITY_SELECTED sets the label to only show when selected, setting it to LABEL_VISIBILITY_LABELED sets the label to always show, and LABEL_VISIBILITY_UNLABELED sets the label to never show.

Setting the label visibility mode to 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

Constants

static final int

Label behaves as "labeled" when there are 3 items or less, or "selected" when there are 4 items or more.

static final int

Label is shown on all navigation items.

static final int

Label is shown on the selected navigation item.

static final int

Label is not shown on any navigation items.

Constants

LABEL_VISIBILITY_AUTO

public static final int LABEL_VISIBILITY_AUTO = -1

Label behaves as "labeled" when there are 3 items or less, or "selected" when there are 4 items or more.

LABEL_VISIBILITY_LABELED

public static final int LABEL_VISIBILITY_LABELED = 1

Label is shown on all navigation items.

LABEL_VISIBILITY_SELECTED

public static final int LABEL_VISIBILITY_SELECTED = 0

Label is shown on the selected navigation item.

LABEL_VISIBILITY_UNLABELED

public static final int LABEL_VISIBILITY_UNLABELED = 2

Label is not shown on any navigation items.