ExpandableListView.GetExpandableListPosition(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts a flat list position (the raw position of an item (child or group) in the list) to a group and/or child position (represented in a packed position).
[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
Parameters
- flatListPosition
- Int32
The flat list position to be converted.
Returns
The group and/or child position for the given flat list position in packed position representation. #PACKED_POSITION_VALUE_NULL if the position corresponds to a header or a footer item.
- Attributes
Remarks
Converts a flat list position (the raw position of an item (child or group) in the list) to a group and/or child position (represented in a packed position). This is useful in situations where the caller needs to use the underlying ListView
's methods. Use ExpandableListView#getPackedPositionType
, ExpandableListView#getPackedPositionChild
, ExpandableListView#getPackedPositionGroup
to unpack.
Java documentation for android.widget.ExpandableListView.getExpandableListPosition(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.