Если ваш адаптер extends BaseExpandableListAdapter
, попробуйте:
@Override
public View getGroupView(int groupPosition, boolean isExpanded, View view, ViewGroup viewGroup) {
LayoutInflater inflater = LayoutInflater.from(context);
if(isExpanded){
view = inflater.inflate(R.layout.two_up_round_corners_group, null);
}else{
view = inflater.inflate(R.layout.four_round_corners_group, null);
}
// Populate your view here.
return view;
}
@Override
public View getChildView(int groupPosition, int childPosition, boolean isLast, View view, ViewGroup viewGroup) {
LayoutInflater inflater = LayoutInflater.from(context);
if(isLast){
view = inflater.inflate(R.layout.two_bottom_round_corners_child, null);
}else{
view = inflater.inflate(R.layout.normal_child, null);
}
// Populate your view here.
return view;
}
Пожалуйста, сделайте макеты соответственно. Надеюсь, это поможет!