create Group Item
open fun createGroupItem(@IdRes id: Int, @NonNull position: ContextualToolbarMenuItem.Position, isSelectable: Boolean, @NonNull subMenuItems: List<ContextualToolbarMenuItem>, @NonNull defaultSelectedItem: ContextualToolbarMenuItem): ContextualToolbarMenuItem
Creates a contextual toolbar menu group item with the provided properties.
Parameters
id
Menu item id.
position
Position of the menu item in the toolbar.
is Selectable
true
if menu item can be selected, false
if it can only be clicked.
sub Menu Items
Items contained in the submenu.
default Selected Item
Item to be selected by default.