BaseExpandableListAdapter.GetCombinedChildId(Int64, Int64) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果你預見基於此方案的ID會發生衝突,請覆寫此方法:
[Android.Runtime.Register("getCombinedChildId", "(JJ)J", "GetGetCombinedChildId_JJHandler")]
public virtual long GetCombinedChildId(long groupId, long childId);
[<Android.Runtime.Register("getCombinedChildId", "(JJ)J", "GetGetCombinedChildId_JJHandler")>]
abstract member GetCombinedChildId : int64 * int64 -> int64
override this.GetCombinedChildId : int64 * int64 -> int64
參數
- groupId
- Int64
包含這個孩子的群組ID。
- childId
- Int64
孩子的身分證。
傳回
該子在所有群組及子節點中唯一(且可能穩定)的 ID。
實作
- 屬性
備註
如果你預見基於此方案的ID會發生衝突,請覆寫此方法:
基礎實作會回傳長碼:
- 位元 0:此 ID 是指向子(未設定)還是群組(設定),因此此方法中此位元為 1。
- 位元 1-31:groupId 的下 31 位元
- 位元 32-63:childID 的下半 32 位元。
請參閱 Android 參考文件中的此成員資料。
Java 文件 android.widget.BaseExpandableListAdapter.getCombinedChildId(long, long)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。