Most visited

Recently visited

Added in API level 1

View.OnCreateContextMenuListener

public static interface View.OnCreateContextMenuListener

android.view.View.OnCreateContextMenuListener
Known Indirect Subclasses


在构建此视图的上下文菜单时调用回调的接口定义。

Summary

Public methods

abstract void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo)

在构建此视图的上下文菜单时调用。

Public methods

onCreateContextMenu

Added in API level 1
void onCreateContextMenu (ContextMenu menu, 
                View v, 
                ContextMenu.ContextMenuInfo menuInfo)

在构建此视图的上下文菜单时调用。 此方法返回后,保持菜单不安全。

Parameters
menu ContextMenu: The context menu that is being built
v View: The view for which the context menu is being built
menuInfo ContextMenu.ContextMenuInfo: Extra information about the item for which the context menu should be shown. This information will vary depending on the class of v.

Hooray!