You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to Show only one child of expandable list at a time.
I have written this code for that.. for the visible items it's working fine. But, if i expand second row and again expand 48th row. its crashing.
Please check:
private static int prev = -1;
listView.setOnGroupExpandListener(new OnGroupExpandListener() {
@Override
public void onGroupExpand(int groupPosition) {
if (prev != groupPosition) {
listView.collapseGroupWithAnimation(prev);
}
prev = groupPosition;
}
});
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to Show only one child of expandable list at a time.
I have written this code for that.. for the visible items it's working fine. But, if i expand second row and again expand 48th row. its crashing.
Please check:
private static int prev = -1;
listView.setOnGroupExpandListener(new OnGroupExpandListener() {
The text was updated successfully, but these errors were encountered: