Code example for ExpandableListView

Methods: setVisibilitystartAnimationsetAdaptersetOnItemClickListenersetSelectedChild, setEmptyView

0
     *            it is collapsed. 
     * @return Whether the selection was successfully set on the child. 
     */ 
    public boolean setSelectedChild(int groupPosition, int childPosition, boolean shouldExpandGroup) {
        ensureList(); 
        return mList.setSelectedChild(groupPosition, childPosition, shouldExpandGroup);
    } 
 
    public void setItemChecked(int position, boolean value) {
        ensureList(); 
        mList.setItemChecked(position, value);
    } 
 
    /** 
     * Sets the selection to the specified group. 
     * @param groupPosition The position of the group that should be selected. 
     */ 
    public void setSelectedGroup(int groupPosition) {
        mList.setSelectedGroup(groupPosition);
    } 
Stop searching for code, let great code find you!  Add Codota to your java IDE