lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey
added in API level 1

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 View.OnCreateContextMenuListener.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

Fields

id

added in API level 1
public long id

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

packedPosition

added in API level 1
public long packedPosition

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

targetView

added in API level 1
public 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
public ExpandableListView.ExpandableListContextMenuInfo (View targetView, 
                long packedPosition, 
                long id)

Parameters
targetView View

packedPosition long

id long