Level n Expandable List

How to display the n-level of an expandable android list view, I get only examples for 3-level extension.

Referring to this: link

Please give recommendations or share me a suitable example for a multi-level extensible display in Android.

Thanks,

+8
android
source share
1 answer

Regarding this .

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; } 

Here, the getChildView method creates a new adapter with the CustExpListview class and sets it as an adapter.
Similarly, you can create a new BaseExpandableListAdapter class and set it in the CustExpListview Class getChildView method.

+8
source share

All Articles