android api 中文 (74)—— AdapterView.AdapterContextMenuInfo

前言

  本章内容是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中文在线文档 转换而成。

posted @   brave-sailor  阅读(202)  评论(0编辑  收藏  举报
编辑推荐:
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
点击右上角即可分享
微信分享提示