返回介绍

AdapterView.AdapterContextMenuInfo

发布于 2025-03-09 17:00:26 字数 1639 浏览 0 评论 0 收藏 0

AdapterView.AdapterContextMenuInfo

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文