Code example for ExpandableListView

Methods: setAdaptersetOnItemClickListenersetSelectedChild, setEmptyView, setVisibility, startAnimation

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);
    } 
    public long getSelectedId() {