Code example for ExpandableListView

Methods: setAdaptersetOnItemClickListener, getSelectedItemPosition, setEmptyView

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