AdapterView.AdapterContextMenuInfo

译者署名:cnmahj

译者链接:http://android.toolib.net/blog

版本:Android 2.3 r1

 

结构

继承关系

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中文在线文档 转换而成。