Added in API level 1

ExpandableListContextMenuInfo


open class ExpandableListContextMenuInfo : ContextMenu.ContextMenuInfo
kotlin.Any
   ↳ android.widget.ExpandableListView.ExpandableListContextMenuInfo

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

Summary

Public constructors
ExpandableListContextMenuInfo(targetView: View!, packedPosition: Long, id: Long)

Properties
Long

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

Long

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

View!

The view for which the context menu is being displayed.

Public constructors

ExpandableListContextMenuInfo

Added in API level 1
ExpandableListContextMenuInfo(
    targetView: View!,
    packedPosition: Long,
    id: Long)

Properties

id

Added in API level 1
var id: Long

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

packedPosition

Added in API level 1
var packedPosition: Long

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

targetView

Added in API level 1
var targetView: View!

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