共用方式為


IHeterogeneousExpandableList.GetChildType(Int32, Int32) 方法

定義

取得將建立的子檢視類型 android.widget.ExpandableListAdapter#getChildView(int, int, boolean, View, ViewGroup) 指定子專案。

[Android.Runtime.Register("getChildType", "(II)I", "GetGetChildType_IIHandler:Android.Widget.IHeterogeneousExpandableListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int GetChildType (int groupPosition, int childPosition);
[<Android.Runtime.Register("getChildType", "(II)I", "GetGetChildType_IIHandler:Android.Widget.IHeterogeneousExpandableListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetChildType : int * int -> int

參數

groupPosition
Int32

子系所在的群組位置

childPosition
Int32

與群組中其他子系相關的子系位置

傳回

整數,表示子檢視的類型。 如果其中一個可以轉換成另一個,則兩個子檢視應該共用相同的類型 android.widget.ExpandableListAdapter#getChildView(int, int, boolean, View, ViewGroup) 注意:整數必須介於 0 到 #getChildTypeCount - 1 的範圍內。 android.widget.Adapter#IGNORE_ITEM_VIEW_TYPE 也可以傳回 。

屬性

備註

取得將針對指定子專案建立 android.widget.ExpandableListAdapter#getChildView(int, int, boolean, View, ViewGroup) 的子檢視類型。

android.widget.HeterogeneousExpandableList.getChildType(int, int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

另請參閱