lucasr/twoway-view

When removing item from adapter I get IndexOutOfBounds

stefanionescu opened this issue · 1 comments

Hey guys,

I'm using an adapter with the TwoWayView and when I want to programmatically delete an item, it gives me IndexOutOfBounds. Did you encounter this situation ? And how did you handle it ?

Nevermind, I solved it : in the adapter I had numerous ArrayLists. When I want to delete items, I get the Arraylists from the adapter, I add the elements that I want to remain in other ArrayLists and the I set the ArrayList again for the Adapter.

Complicated but works