一、结构
public static class AdapterContextMenuInfo extends Object
implements ContextMenu.ContextMenuInfo
java.lang.Object
android.widget.AdapterView.AdapterContextMenuInfo
二、概述
当显示 AdapterView 的上下文菜单时,为 onCreateContextMenu(ContextMenu, View, ContextMenuInfo)
回调函数提供的额外的菜单信息。
三、字段
public long id
用于显示上下文菜单的子视图的行 ID。
public int position
用于显示上下文菜单的子视图在适配器中的位置。
public View targetView
用于显示上下文菜单的子视图。也是 AdapterView 的子视图之一。
四、构造函数
public AdapterView.AdapterContextMenuInfo (View targetView, int position, long id)
构造函数
五、相关章节
android api 中文 (73)—— AdapterView
六、补充
本文由Android中文在线文档 转换而成。
本文转自博客园农民伯伯的博客,原文链接:android api 中文 (74)—— AdapterView.AdapterContextMenuInfo,如需转载请自行联系原博主。