setOpenSubmenuOnClick

open fun setOpenSubmenuOnClick(openSubmenuOnClick: Boolean)

Sets if the submenu should be opened after clicking on the menu item.

Note: This property is not used when menu item is selectable isSelectable. Clicking toggles selection in this case.

Parameters

openSubmenuOnClick

If true and menu item is not selectable, clicking on the menu item will open its submenu. Otherwise only the long click opens the submenu.