Most visited

Recently visited

Added in API level 1

ExpandableListView.ExpandableListContextMenuInfo

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

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


当针对此AdapterView提供上下文菜单时,提供给 onCreateContextMenu(ContextMenu, View, ContextMenuInfo)回调的特定于 ExpandableListView额外菜单信息。

Summary

Fields

public long id

正在显示上下文菜单的项目(组或子项)的ID。

public long packedPosition

正在显示上下文菜单的适配器所表示的列表中的打包位置。

public View targetView

正在显示上下文菜单的视图。

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

正在显示上下文菜单的项目(组或子项)的ID。

packedPosition

Added in API level 1
long packedPosition

正在显示上下文菜单的适配器所表示的列表中的打包位置。 使用方法getPackedPositionType(long)getPackedPositionChild(long) ,并getPackedPositionGroup(long)解压这一点。

targetView

Added in API level 1
View targetView

正在显示上下文菜单的视图。 这将是这个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

Hooray!