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!