How to display n- level of expandable list view android, I am getting only examples for 3-Levels expandable.
Referring this :link
Please guideline or share me suitable example for Multi-level expandable display in android.
Thanks,
根据这个例子。
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;
}
这里getChildView
方法通过类创建一个新的适配器,CustExpListview
并将其设置为适配器。
同样的方法,你可以创建一个新的 Class 并在Class方法BaseExpandableListAdapter
中设置它。CustExpListview
getChildView