public enum

CarMenuItem.DisplayBehavior

extends java.lang.Enum<CarMenuItem.DisplayBehavior>

 java.lang.Object

↳java.lang.Enum<CarMenuItem.DisplayBehavior>

↳androidx.car.widget.CarMenuItem.DisplayBehavior

Overview

Display behaviors for CarMenuItems. describes whether the items will be displayed on the toolbar or in the overflow menu.

Summary

Enum Constants
ALWAYSThe item is always displayed on the toolbar, never in the overflow menu.
IF_ROOMThe item is displayed on the toolbar if there's room, otherwise in the overflow menu.
NEVERThe item is always displayed in the overflow menu, never on the toolbar.
Methods
public static CarMenuItem.DisplayBehaviorvalueOf(java.lang.String name)

public static CarMenuItem.DisplayBehaviorvalues()

from java.lang.Enum<E>clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
from java.lang.ObjectgetClass, notify, notifyAll, wait, wait, wait

Enum Constants

ALWAYS

The item is always displayed on the toolbar, never in the overflow menu.

IF_ROOM

The item is displayed on the toolbar if there's room, otherwise in the overflow menu.

NEVER

The item is always displayed in the overflow menu, never on the toolbar.

Methods

public static CarMenuItem.DisplayBehavior values()

public static CarMenuItem.DisplayBehavior valueOf(java.lang.String name)