Closed Punamasawa closed 5 years ago
It makes the session closed sectionAdapter.notifyDataSetChanged();
headerHolder.rootView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
expanded = !expanded;
headerHolder.imgArrow.setImageResource(
expanded ? R.drawable.ic_keyboard_arrow_up_black_18dp : R.drawable.ic_keyboard_arrow_down_black_18dp
);
sectionAdapter.notifyDataSetChanged(); // close the session
}
});
How to close a session in Expandable Session