Most visited

Recently visited

Added in API level 1

MenuItem.OnMenuItemClickListener

public static interface MenuItem.OnMenuItemClickListener

android.view.MenuItem.OnMenuItemClickListener


在单击菜单项时调用回调的接口定义。

也可以看看:

Summary

Public methods

abstract boolean onMenuItemClick(MenuItem item)

调用菜单项时调用。

Public methods

onMenuItemClick

Added in API level 1
boolean onMenuItemClick (MenuItem item)

调用菜单项时调用。 这是执行的第一个代码; 如果它返回true,则不会执行其他回调。

Parameters
item MenuItem: The menu item that was invoked.
Returns
boolean Return true to consume this click and prevent others from executing.

Hooray!