on Toolbar Menu Item Click
abstract fun onToolbarMenuItemClick(@NonNull toolbar: ContextualToolbar, @NonNull menuItem: ContextualToolbarMenuItem): Boolean
Called when the menu item is clicked on the ContextualToolbar.
Return
true
to override the default item click action, false
to perform it anyways.
Parameters
toolbar
A toolbar containing the clicked item.
menu Item
Clicked menu item.