How can I fold all ChildView Group in Expandable List. Now I have two buttons to control Expand All and Fold All on Activity. Expandable button is OK and it is working work but I don't know how to fold all ChildView Group. How can i do this ?
Thanks
**expandableListView.expandGroup(position, true); = OK<Br>
expandableListView.foldGroup(position) = ? or ?**
try this,
int count = (new ExpAdapter(this)).getGroupCount();
b.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
for (int i = 0; i < count; i++)
{
expList.collapseGroup(i);
}
}
});
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