Skip to content

Most visited

Recently visited

navigation

ExpandableListView.ExpandableListContextMenuInfo

public static class ExpandableListView.ExpandableListContextMenuInfo
extends Object implements ContextMenu.ContextMenuInfo

java.lang.Object
   ↳ android.widget.ExpandableListView.ExpandableListContextMenuInfo


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

Summary

Fields

public long id

The ID of the item (group or child) for which the context menu is being displayed.

public long packedPosition

The packed position in the list represented by the adapter for which the context menu is being displayed.

public View targetView

The view for which the context menu is being displayed.

Public constructors

ExpandableListView.ExpandableListContextMenuInfo(View targetView, long packedPosition, long id)

Inherited methods

From class java.lang.Object

Fields

id

Added in API level 1
long id

The ID of the item (group or child) for which the context menu is being displayed.

packedPosition

Added in API level 1
long packedPosition

The packed position in the list represented by the adapter for which the context menu is being displayed. Use the methods getPackedPositionType(long), getPackedPositionChild(long), and getPackedPositionGroup(long) to unpack this.

targetView

Added in API level 1
View targetView

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

Public constructors

ExpandableListView.ExpandableListContextMenuInfo

Added in API level 1
ExpandableListView.ExpandableListContextMenuInfo (View targetView, 
                long packedPosition, 
                long id)

Parameters
targetView View
packedPosition long
id long
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

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 one-minute survey?
Help us improve Android tools and documentation.