Code example for ExpandableListView

Methods: setAdaptersetOnChildClickListenersetOnGroupClickListenersetOnGroupCollapseListenersetOnGroupExpandListener, getSelectedItemPosition, setEmptyView

0
    /** 
     * Get the position of the currently selected list item. 
     */ 
    public int getSelectedItemPosition() { 
        ensureList(); 
        return mExpandableList.getSelectedItemPosition();
    } 
 
    /** 
     * Get the cursor row ID of the currently selected list item. 
     */ 
    public long getSelectedItemId() { 
        ensureList(); 
        return mExpandableList.getSelectedItemId();
    } 
 
    /** 
     * Get the activity's list view widget. 
     */ 
    public ListView getListView() {
        ensureList();