android.widget.ExpandableListView.setSelectedChild()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(149)

本文整理了Java中android.widget.ExpandableListView.setSelectedChild()方法的一些代码示例,展示了ExpandableListView.setSelectedChild()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ExpandableListView.setSelectedChild()方法的具体详情如下:
包路径:android.widget.ExpandableListView
类名称:ExpandableListView
方法名:setSelectedChild

ExpandableListView.setSelectedChild介绍

暂无

代码示例

代码示例来源:origin: NordicSemiconductor/Android-nRF-Toolbox

/**
 * 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.
 * 
 * @param groupPosition
 *            The position of the group that contains the child.
 * @param childPosition
 *            The position of the child within the group.
 * @param shouldExpandGroup
 *            Whether the child's group should be expanded if it is collapsed.
 * @return Whether the selection was successfully set on the child.
 */
public boolean setSelectedChild(int groupPosition, int childPosition, boolean shouldExpandGroup) {
  return mList.setSelectedChild(groupPosition, childPosition, shouldExpandGroup);
}

代码示例来源:origin: CUTR-at-USF/OpenTripPlanner-for-Android

/**
 * 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.
 *
 * @param groupPosition     The position of the group that contains the child.
 * @param childPosition     The position of the child within the group.
 * @param shouldExpandGroup Whether the child's group should be expanded if
 *                          it is collapsed.
 * @return Whether the selection was successfully set on the child.
 */
public boolean setSelectedChild(int groupPosition, int childPosition,
    boolean shouldExpandGroup) {
  return mExpandableList.setSelectedChild(groupPosition, childPosition, shouldExpandGroup);
}

相关文章

ExpandableListView类方法