I am using an ExpandableListView along with a ViewPager so in onPageSelected() I need to clear the list.
I know one way to do it for a ListView is setAdapter(null) but I get The method setAdapter(ListAdapter) is ambiguous for the type ExpandableListView error if I try it on ExpandableListView.
Try by type casting null with BaseExpandableListAdapter like below.
listview.setAdapter((BaseExpandableListAdapter)null);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With