Skip to content

Most visited

Recently visited

navigation

AdapterView.AdapterContextMenuInfo

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

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


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

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

Inherited methods

From class java.lang.Object

Fields

id

added in API level 1
long id

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

position

added in API level 1
int position

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

targetView

added in API level 1
View targetView

The child view for which the context menu is being displayed. This will be one of the children of this 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

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)