Package icyllis.modernui.widget
Class ExpandableListView.ExpandableListContextMenuInfo
java.lang.Object
icyllis.modernui.widget.ExpandableListView.ExpandableListContextMenuInfo
- All Implemented Interfaces:
ContextMenu.ContextMenuInfo
- Enclosing class:
ExpandableListView
public static class ExpandableListView.ExpandableListContextMenuInfo
extends Object
implements ContextMenu.ContextMenuInfo
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.-
Field Summary
Modifier and TypeFieldDescriptionlong
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.The view for which the context menu is being displayed. -
Constructor Summary
ConstructorDescriptionExpandableListContextMenuInfo
(View targetView, long packedPosition, long id) -
Method Summary
-
Field Details
-
targetView
The view for which the context menu is being displayed. This will be one of the children Views of thisExpandableListView
. -
packedPosition
public long packedPositionThe packed position in the list represented by the adapter for which the context menu is being displayed. Use the methodsExpandableListView.getPackedPositionType(long)
,ExpandableListView.getPackedPositionChild(long)
, andExpandableListView.getPackedPositionGroup(long)
to unpack this. -
id
public long idThe ID of the item (group or child) for which the context menu is being displayed.
-
-
Constructor Details
-
ExpandableListContextMenuInfo
-