Most visited

Recently visited

Added in API level 1

AdapterView.AdapterContextMenuInfo

public static class AdapterView.AdapterContextMenuInfo
extends Object implements ContextMenu.ContextMenuInfo

java.lang.Object
   ↳ android.widget.AdapterView.AdapterContextMenuInfo


当为此AdapterView提供上下文菜单时,提供给 onCreateContextMenu(ContextMenu, View, ContextMenuInfo)回调的额外菜单信息。

Summary

Fields

public long id

正在显示上下文菜单的项目的行ID。

public int position

正在显示上下文菜单的适配器中的位置。

public View targetView

正在显示上下文菜单的子视图。

Public constructors

AdapterView.AdapterContextMenuInfo(View targetView, int position, long id)

Inherited methods

From class java.lang.Object

Fields

id

Added in API level 1
long id

正在显示上下文菜单的项目的行ID。

position

Added in API level 1
int position

正在显示上下文菜单的适配器中的位置。

targetView

Added in API level 1
View targetView

正在显示上下文菜单的子视图。 这将是此AdapterView的子项之一。

Public constructors

AdapterView.AdapterContextMenuInfo

Added in API level 1
AdapterView.AdapterContextMenuInfo (View targetView, 
                int position, 
                long id)

Parameters
targetView View
position int
id long

Hooray!