ExpandableListActivity.SetSelectedChild(Int32, Int32, Boolean) 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.
Sets the selection to the specified child.
[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
Parameters
- groupPosition
- Int32
The position of the group that contains the child.
- childPosition
- Int32
The position of the child within the group.
- shouldExpandGroup
- Boolean
Whether the child's group should be expanded if it is collapsed.
Returns
Whether the selection was successfully set on the child.
- Attributes
Remarks
Sets the selection to the specified child. If the child is in a collapsed group, the group will only be expanded and child subsequently selected if shouldExpandGroup is set to true, otherwise the method will return false.
Java documentation for android.app.ExpandableListActivity.setSelectedChild(int, int, boolean)
.
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.