Android7.0中文文档(API)-- AdapterView.AdapterContextMenuInfo

秦渝
2023-12-01

完整内容,请参考:http://www.zhdoc.net/android/reference/android/widget/AdapterView.AdapterContextMenuInfo.html

AdapterView.AdapterContextMenuInfo

public static class AdapterView.AdapterContextMenuInfo
extends Object implements ContextMenu.ContextMenuInfo

java.lang.Object
   ↳android.widget.AdapterView.AdapterContextMenuInfo


Extra menu information provided to the onCreateContextMenu(ContextMenu, View, ContextMenuInfo) callback when a context menu is brought up for this AdapterView.
当为这个AdapterView弹出一个上下文菜单时,提供给onCreateContextMenu(ContextMenu, View, ContextMenuInfo)方法的额外的菜单信息。

摘要


字段

public longid

The row id of the item for which the context menu is being displayed.
上下文菜单显示项的行id。

public intposition

The position in the adapter for which the context menu is being displayed.
上下文菜单显示项的位置。

public ViewtargetView

The child view for which the context menu is being displayed.
上下文菜单显示项的子视图。

Public构造方法

AdapterView.AdapterContextMenuInfo(View targetView, int position, long id)

继承方法

 类似资料: