Most visited

Recently visited

Toolbar.OnMenuItemClickListener

public static interface Toolbar.OnMenuItemClickListener

android.support.v7.widget.Toolbar.OnMenuItemClickListener


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

Summary

Public methods

abstract boolean onMenuItemClick(MenuItem item)

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

Public methods

onMenuItemClick

boolean onMenuItemClick (MenuItem item)

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

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

Hooray!