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.
Md abdul gafur
source share