Menu Item Grouping Rule
interface MenuItemGroupingRule
Interface for classes that will define rules for grouping ContextualToolbarMenuItems in the ContextualToolbar.
Inheritors
Functions
Link copied to clipboard
Indicates whether the group items (that are generated to fit items when not enough space) are selectable or not.
Link copied to clipboard
abstract fun groupMenuItems(@NonNull flatItems: List<ContextualToolbarMenuItem>, @IntRange(from = ContextualToolbar.MIN_TOOLBAR_CAPACITY ) capacity: Int): List<ContextualToolbarMenuItem>
Performs grouping of the provided list of menu items based on the available toolbar capacity, meaning the max number of items it can fit.