is there a way to get the number of groups in an ExpandableListView? Or do I have to "remember" how many group items I have added?
You can get the group count through the ExpandableListView
's adapter:
ExpandableListView v;
[...]
final int groupCount = v.getExpandableListAdapter().getGroupCount();
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