Code example for ExpandableListView

Methods: getSelectedPositionsetAdaptersetOnItemClickListener, setEmptyView

0
        mList.setSelection(position);
    } 
 
    public long getSelectedPosition() { 
        ensureList(); 
        return mList.getSelectedPosition();
    } 
 
    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