语言

BaseExpandableListAdapter.GetGroupId(Int32) 方法

定义

获取位于给定位置的组的 ID。

[Android.Runtime.Register("getGroupId", "(I)J", "GetGetGroupId_IHandler")]
public abstract long GetGroupId(int groupPosition);
[<Android.Runtime.Register("getGroupId", "(I)J", "GetGetGroupId_IHandler")>]
abstract member GetGroupId : int -> int64

参数

groupPosition
Int32

要为其指定 ID 的组的位置

返回

与组关联的 ID

实现

特性

注解

获取位于给定位置的组的 ID。 此组 ID 必须跨组唯一。 组合 ID(见 #getCombinedGroupId(long))必须在所有项(组和所有子项)中是唯一的。

Java文档android.widget.ExpandableListAdapter.getGroupId(int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于