to top
Android APIs
public static class

AdapterView.AdapterContextMenuInfo

extends Object
implements ContextMenu.ContextMenuInfo
java.lang.Object
   ↳ android.widget.AdapterView.AdapterContextMenuInfo

Class Overview

Extra menu information provided to the onCreateContextMenu(ContextMenu, View, ContextMenuInfo) callback when a context menu is brought up for this AdapterView.

Summary

Fields
public long id The row id of the item for which the context menu is being displayed.
public int position The position in the adapter for which the context menu is being displayed.
public View targetView The child view for which the context menu is being displayed.
Public Constructors

? Examples
AdapterView.AdapterContextMenuInfo( View targetView, int position, long id)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public long id

Added in API level 1

The row id of the item for which the context menu is being displayed.

public int position

Added in API level 1

The position in the adapter for which the context menu is being displayed.

public View targetView

Added in API level 1

The child view for which the context menu is being displayed. This will be one of the children of this AdapterView.

Public Constructors

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

Added in API level 1

No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.