public static interface MenuItem.OnActionExpandListener
android.view.MenuItem.OnActionExpandListener |
当标记为 SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW
的菜单项展开或折叠时,将调用回调的接口定义。
Public methods |
|
---|---|
abstract boolean |
onMenuItemActionCollapse(MenuItem item) 当包含 |
abstract boolean |
onMenuItemActionExpand(MenuItem item) 当带有 |
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. |
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. |