前言

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

声明

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

    农民伯伯:http://over140.blog.51cto.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横向翻页滚动菜单
  2. toolbar自定义右边的菜单注意
  3. Android(安卓)OpenGL ES 包及流程摘要
  4. android细节:各种context
  5. 属于自己的常见Android选项菜单样式集合
  6. Android开发之ExpandableListView
  7. Animation总结
  8. 【Android(安卓)开发教程】注册事件监听器
  9. Android开发框架xUtils3.x新手教学(二)HTTPS访问

随机推荐

  1. Android MP4取得播放时长的方法
  2. Android如何动态更换桌面图标(巨坑)
  3. android基础知识12:android自动化测试06―
  4. 第10章 Android的消息机制
  5. Android信任Https自签名证书详细教程
  6. Android AOP(二):AspectJ在Android中实现A
  7. android控件的属性
  8. JOIM:Android通过IPCamera通过互联网实时
  9. 彻底解决Android6.0权限管理问题
  10. Android 驱动Ok6410Led