答案 0 :(得分:8)
根据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;
}
此处getChildView
方法通过CustExpListview
类创建新适配器,并将sets设置为适配器。
与创建新BaseExpandableListAdapter
类并将其设置为CustExpListview
类getChildView
方法的方式相同。