Według tego example.
public View getChildView(int groupPosition, int childPosition,
boolean isLastChild, View convertView, ViewGroup parent) {
CustExpListview SecondLevelexplv = new CustExpListview(Vincent_ThreeelevellistActivity.this);
SecondLevelexplv.setAdapter(new SecondLevelAdapter());
SecondLevelexplv.setGroupIndicator(null);
return SecondLevelexplv;
}
Oto metoda getChildView
tworzy nowy zasilacz przez CustExpListview
klasy i ustawia się jako adaptera.
W ten sam sposób można utworzyć nową klasę BaseExpandableListAdapter
i ustawić ją w metodzie CustExpListview
Class getChildView
.
Zobacz link do Mojego projektu, w którym można uzyskać widok listy drzewa N-poziom.https: //github.com/Jaldips/Android-MultilevelTreeListView –