Submenu
A toolbar item that opens a submenu of nested children when tapped.
Constructors
Properties
Nested items shown when this submenu is opened.
Whether tapping a child dismisses the submenu. The View ContextualToolbarMenuItem.setCloseSubmenuOnItemClick equivalent — the undo/redo group keeps its submenu open so undo can be tapped repeatedly.
Accessibility label and overflow-menu text for this item.
How this item renders its icon.
Whether a tap opens this submenu instead of activating its representative child. false (the default) is the tool-group behavior: tap activates the child the group's icon shows, long-press opens the submenu. true is the View "More options" group behavior: the group is a pure container whose children are independent actions, so a tap opens the submenu directly.
Whether this item shows in the row, collapses into overflow, or is always pinned to overflow.
Which edge of the toolbar this item is grouped against.
Whether a tap runs the group's only enabled child directly instead of opening the submenu. With more than one enabled child the tap falls back to the other click rules. The undo/redo group: with only undo (or only redo) possible a tap just undoes (or redoes), and the submenu opens only when there is a choice to make.
Whether the group draws the small corner triangle that marks it as a submenu. The undo/redo group opts out: its compound icon already shows both actions.
Per-item dynamic state (enabled / selected / visible).