ExpandableListView.GetPackedPositionForChild(Int32, 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.
Returns the packed position representation of a child's position.
[Android.Runtime.Register("getPackedPositionForChild", "(II)J", "")]
public static long GetPackedPositionForChild (int groupPosition, int childPosition);
[<Android.Runtime.Register("getPackedPositionForChild", "(II)J", "")>]
static member GetPackedPositionForChild : int * int -> int64
Parameters
- groupPosition
- Int32
The child's parent group's position.
- childPosition
- Int32
The child position within the group.
Returns
The packed position representation of the child (and parent group).
- Attributes
Remarks
Returns the packed position representation of a child's position.
In general, a packed position should be used in situations where the position given to/returned from an ExpandableListAdapter
or ExpandableListView
method can either be a child or group. The two positions are packed into a single long which can be unpacked using #getPackedPositionChild(long)
, #getPackedPositionGroup(long)
, and #getPackedPositionType(long)
.
Java documentation for android.widget.ExpandableListView.getPackedPositionForChild(int, 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.