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

ExpandableListContextMenuInfo(View targetView, long packedPosition, long id)

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

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, ExpandableListView.getPackedPositionChild, and ExpandableListView.getPackedPositionGroup 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

ExpandableListContextMenuInfo

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

Parameters
targetView View

packedPosition long

id long