IExpandableListAdapter.GetCombinedChildId(Int64, Int64) Method

Definition

Gets an ID for a child that is unique across any item (either group or child) that is in this list.

[Android.Runtime.Register("getCombinedChildId", "(JJ)J", "GetGetCombinedChildId_JJHandler:Android.Widget.IExpandableListAdapterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public long GetCombinedChildId (long groupId, long childId);
[<Android.Runtime.Register("getCombinedChildId", "(JJ)J", "GetGetCombinedChildId_JJHandler:Android.Widget.IExpandableListAdapterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetCombinedChildId : int64 * int64 -> int64

Parameters

groupId
Int64

The ID of the group that contains this child.

childId
Int64

The ID of the child.

Returns

The unique (and possibly stable) ID of the child across all groups and children in this list.

Attributes

Remarks

Gets an ID for a child that is unique across any item (either group or child) that is in this list. Expandable lists require each item (group or child) to have a unique ID among all children and groups in the list. This method is responsible for returning that unique ID given a child's ID and its group's ID. Furthermore, if #hasStableIds() is true, the returned ID must be stable as well.

Java documentation for android.widget.ExpandableListAdapter.getCombinedChildId(long, long).

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.

Applies to