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!