Most visited

Recently visited

Added in API level 21

ActionMenuView.OnMenuItemClickListener

public static interface ActionMenuView.OnMenuItemClickListener

android.widget.ActionMenuView.OnMenuItemClickListener


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

Summary

Public methods

abstract boolean onMenuItemClick(MenuItem item)

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

Public methods

onMenuItemClick

Added in API level 21
boolean onMenuItemClick (MenuItem item)

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

Parameters
item MenuItem: MenuItem that was clicked
Returns
boolean true if the event was handled, false otherwise.

Hooray!