Code example for ExpandableListView

Methods: setSelectedGroup

0
    /** 
     * 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() { 
        ensureList(); 
        return mList.getSelectedId();
    } 
 
    public ExpandableListView getExpandableListView() {
        ensureList(); 
        return mList;
    } 
 
    /** 
     * The default content for a ListFragment has a TextView that can 
     * be shown when the list is empty.  If you would like to have it 
     * shown, call this method to supply the text it should use.