MenuItemCompat.OnActionExpandListener

Added in 1.1.0
Deprecated in 1.1.0

interface MenuItemCompat.OnActionExpandListener


Interface definition for a callback to be invoked when a menu item marked with SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW is expanded or collapsed.

Summary

Public functions

Boolean

Called when a menu item with SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW is collapsed.

Boolean

Called when a menu item with SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW is expanded.

Public functions

onMenuItemActionCollapse

Added in 1.1.0
Deprecated in 1.1.0
fun onMenuItemActionCollapse(item: MenuItem!): Boolean

Called when a menu item with SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW is collapsed.

Parameters
item: MenuItem!

Item that was collapsed

Returns
Boolean

true if the item should collapse, false if collapsing should be suppressed.

onMenuItemActionExpand

Added in 1.1.0
Deprecated in 1.1.0
fun onMenuItemActionExpand(item: MenuItem!): Boolean

Called when a menu item with SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW is expanded.

Parameters
item: MenuItem!

Item that was expanded

Returns
Boolean

true if the item should expand, false if expansion should be suppressed.