android.support.v4.view
Interface MenuItemCompat.OnActionExpandListener

Enclosing class:
MenuItemCompat

public static interface MenuItemCompat.OnActionExpandListener

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

See Also:
MenuItemCompat.expandActionView(android.view.MenuItem), MenuItemCompat.collapseActionView(android.view.MenuItem), MenuItemCompat.setShowAsAction(android.view.MenuItem, int)

Method Summary
 boolean onMenuItemActionCollapse(android.view.MenuItem item)
          Called when a menu item with MenuItemCompat.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW is collapsed.
 boolean onMenuItemActionExpand(android.view.MenuItem item)
          Called when a menu item with MenuItemCompat.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW is expanded.
 

Method Detail

onMenuItemActionExpand

boolean onMenuItemActionExpand(android.view.MenuItem item)
Called when a menu item with MenuItemCompat.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW is expanded.

Parameters:
item - Item that was expanded
Returns:
true if the item should expand, false if expansion should be suppressed.

onMenuItemActionCollapse

boolean onMenuItemActionCollapse(android.view.MenuItem item)
Called when a menu item with MenuItemCompat.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW is collapsed.

Parameters:
item - Item that was collapsed
Returns:
true if the item should collapse, false if collapsing should be suppressed.