Code example for ExpandableListView

Methods: setAdaptersetOnItemClickListener, getSelectedItemId, setEmptyView

0
    /** 
     * 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 ExpandableListView getListView() {
        ensureList(); 
        return mExpandableList;
    } 
 
    /** 
     * 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. 
     */ 
    public void setEmptyText(CharSequence text) {