前言

  本章内容是android.widget.AdapterView.AdapterContextMenuInfo,版本为Android 2.3 r1,翻译来自"cnmahj",欢迎大家访问他的博客:http://android.toolib.net/blog/,再次感谢"cnmahj"!欢迎你一起参与Android API 的中文翻译,联系我over140@gmail.com。

声明

  欢迎转载,但请保留文章原始出处:)

    博客园:http://www.cnblogs.com/

    Android中文翻译组:http://code.taobao.org/project/view/404/

正文

  一、结构

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

更多相关文章

  1. Android(安卓)如何开发 Bottom Navigation 风格
  2. Android(安卓)之 下拉框(Spinner)的简单使用
  3. android2.2资源文件详解4--menu文件夹下的菜单定义
  4. Android中onContextItemSelected不响应
  5. Android(安卓)自定义组件 方法篇
  6. unity内置浏览器插件UniWebView的使用(支持Android,ios,Mac)
  7. Android(安卓)数据绑定视图 dataBinding
  8. Android原生弹框的工具类AlertDialog,Dialog
  9. Android(安卓)ViewHolder

随机推荐

  1. 活动与任务
  2. Android(安卓)Animation学习笔记
  3. 为Android加入busybox工具
  4. Android(安卓)应用程序基础
  5. [转]Android的Camera架构介绍[有图]
  6. Android(安卓)SO文件的兼容和适配
  7. android全平台编译ffmpeg以及x264与fdk-a
  8. Android(安卓)虚拟多开系列二——技术原
  9. Application Fundamentals --1.2
  10. Android开发者指南(1) —— Android(安卓