OverflowBehavior

Where an item is allowed to appear, making each ToolbarItem self-describe its placement rather than the grouping layer reading the legacy Menu's showAsAction. Mirrors the AppCompat SHOW_AS_ACTION_* semantics the View toolbar used.

Entries

Link copied to clipboard

Always shown in the row; never collapsed into overflow (≈ SHOW_AS_ACTION_ALWAYS).

Link copied to clipboard

Shown in the row if there is space, otherwise moved to overflow (≈ SHOW_AS_ACTION_IF_ROOM).

Link copied to clipboard

Always collapsed into the overflow menu, regardless of available width (≈ SHOW_AS_ACTION_NEVER).

Link copied to clipboard

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Functions

Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.