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

本文详细介绍了AdapterContextMenuInfo类,这是Android中用于提供AdapterView上下文菜单信息的重要组件。该类包含用于标识显示上下文菜单的子视图的相关信息,如行ID、位置及目标视图等。

摘要生成于 C知道 ,由 DeepSeek-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 api 中文 (73)—— AdapterView 

六、补充

    本文由Android中文在线文档 转换而成。

本文转自博客园农民伯伯的博客,原文链接:android api 中文 (74)—— AdapterView.AdapterContextMenuInfo,如需转载请自行联系原博主。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值