语言

ExpandableListView.GetExpandableListPosition(Int32) 方法

定义

将平面列表位置(项目(子或组)在列表中的原始位置)转换为组和/或子位置(以打包位置表示)。

[Android.Runtime.Register("getExpandableListPosition", "(I)J", "GetGetExpandableListPosition_IHandler")]
public virtual long GetExpandableListPosition(int flatListPosition);
[<Android.Runtime.Register("getExpandableListPosition", "(I)J", "GetGetExpandableListPosition_IHandler")>]
abstract member GetExpandableListPosition : int -> int64
override this.GetExpandableListPosition : int -> int64

参数

flatListPosition
Int32

要转换的平面列表位置。

返回

给定平面列表位置的组和/或子位置在打包位置表示形式中。 #PACKED_POSITION_VALUE_NULL该位置对应于页眉或页脚项。

属性

注解

将平面列表位置(项目(子或组)在列表中的原始位置)转换为组和/或子位置(以打包位置表示)。 在调用方需要使用基础 ListView方法的情况下,这非常有用。 使用 ExpandableListView#getPackedPositionType ,ExpandableListView#getPackedPositionChildExpandableListView#getPackedPositionGroup可解压缩。

Java文档android.widget.ExpandableListView.getExpandableListPosition(int)。

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

适用于