Most visited

Recently visited

MenuItemCompat.OnActionExpandListener

public static interface MenuItemCompat.OnActionExpandListener

android.support.v4.view.MenuItemCompat.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

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

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!