Most visited

Recently visited

Added in API level 14

MenuItem.OnActionExpandListener

public static interface MenuItem.OnActionExpandListener

android.view.MenuItem.OnActionExpandListener


当标记为 SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW的菜单项展开或折叠时,将调用回调的接口定义。

也可以看看:

Summary

Public methods

abstract boolean onMenuItemActionCollapse(MenuItem item)

当包含 SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW的菜单项折叠时调用。

abstract boolean onMenuItemActionExpand(MenuItem item)

当带有 SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW的菜单项展开时调用。

Public methods

onMenuItemActionCollapse

Added in API level 14
boolean onMenuItemActionCollapse (MenuItem item)

当包含 SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW的菜单项折叠时调用。

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

onMenuItemActionExpand

Added in API level 14
boolean onMenuItemActionExpand (MenuItem item)

当带有 SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW的菜单项展开时调用。

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

Hooray!