Most visited

Recently visited

Added in API level 11

PopupMenu.OnMenuItemClickListener

public static interface PopupMenu.OnMenuItemClickListener

android.widget.PopupMenu.OnMenuItemClickListener


如果项目本身没有单独的项目点击监听器,则负责接收菜单项点击事件。

摘要(Summary)

公共方法(Public methods)

abstract boolean onMenuItemClick(MenuItem item)

如果项目本身尚未处理事件,则会在单击菜单项时调用此方法。

公共方法(Public methods)

onMenuItemClick

Added in API level 11
boolean onMenuItemClick (MenuItem item)

如果项目本身尚未处理事件,则会在单击菜单项时调用此方法。

参数(Parameters)
item MenuItem: the menu item that was clicked
返回(Returns)
boolean true if the event was handled, false otherwise

Hooray!