tjerkw / Android-SlideExpandableListView

A better ExpandableListView, with animated expandable views for each list item
Apache License 2.0
1.98k stars 741 forks source link

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

Open rathodvikas10 opened 10 years ago

rathodvikas10 commented 10 years ago

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 ??

tjerkw commented 10 years ago

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?