語言

ExpandableListView.SetSelectedChild(Int32, Int32, Boolean) 方法

定義

將選擇設定為指定的子節點。

[Android.Runtime.Register("setSelectedChild", "(IIZ)Z", "GetSetSelectedChild_IIZHandler")]
public virtual bool SetSelectedChild(int groupPosition, int childPosition, bool shouldExpandGroup);
[<Android.Runtime.Register("setSelectedChild", "(IIZ)Z", "GetSetSelectedChild_IIZHandler")>]
abstract member SetSelectedChild : int * int * bool -> bool
override this.SetSelectedChild : int * int * bool -> bool

參數

groupPosition
Int32

包含該兒童的群組位置。

childPosition
Int32

孩子在群體中的地位。

shouldExpandGroup
Boolean

如果孩子小組被撤銷,是否應該擴大。

傳回

選擇是否成功地被安排在孩子身上。

屬性

備註

將選擇設定為指定的子節點。 若子節點位於摺疊群組中,只有當 shouldExpandGroup 設為 true,該群組才會展開並隨後選擇子節點,否則方法會回傳 false。

Java 文件 android.widget.ExpandableListView.setSelectedChild(int, int, boolean)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於