語言

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#getPackedPositionChild、來 ExpandableListView#getPackedPositionGroup 拆包。

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於