tjerkw/Android-SlideExpandableListView

Does not Expand the bottom item if the top item is removed form the adapter.

Opened this issue · 1 comments

listView = (ActionSlideExpandableListView) getListView();
...
listView.setAdapter(mAdapter);

mAdapter.remove(position);
mAdapter.notifyDataSetChanged();

Remove method in adapter
remove(int position) {
collectionData.remove(position);
}

and i am using this
https://github.com/romannurik/android-swipetodismiss

cool the item is removed, but when you click the item below it does not expand
i guess in adapter the data is gone but in listview position still persist, how do i update position in listview ??

It has an internal state of which index is open, if you remove an item you should ensure to update the adapter which in turn should let the listview know it is updated.. it may be the case that this is not working. Could you confirm this?