Code example for ExpandableListView

Methods: getExpandableListAdapter, getGroupView

0
            } 
        }, true); 
    } 
 
    private View getGroupView(int groupPosition) {
        return getAdapter().getGroupView(groupPosition, false, null, listView);
    } 
 
    private View getChildView(int groupPosition, int childPosition, boolean lastChild) {
        return getAdapter().getChildView(groupPosition, childPosition, lastChild, null, listView);
    } 
 
    private ExpandableListAdapter getAdapter() {
        ExpandableListAdapter adapter = listView.getExpandableListAdapter();
        assertNotNull("list adapter expected to exist, but was null", adapter);
        return adapter;
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE