MisterJimson / XamarinSwipeActionAdapter

Xamarin bindings for SwipeActionAdapter
MIT License
0 stars 0 forks source link

SwipeAdapter dosen't go well with view recycling of ListVIew #1

Open SergiuZa opened 6 years ago

SergiuZa commented 6 years ago

Hello,

I tried to use swipe adapter, but it seems it that somehow the view recycling of the listview dosen't work well anymore with the adapter. I usually have a list with swipe actions, and you can also go in multiselect mode, where I disable the swipe actions.

When the NotifyDataSetChanged() is triggered, usually for each element there sould be an convert view, but for some reason, when using SwipeActionAdapter, one of the view is always null (only one, the rest are not null), so the inflate operation has to be done again, then performance is dropped and checkbox anymations are cut.

Do you know if there is any solution for this problem?

Thank you! Sergiu

MisterJimson commented 6 years ago

Hey @SergiuZa.

I haven't ran into your problem before. This project is just a bindings project for https://github.com/wdullaer/SwipeActionAdapter.

This may be fixed by using an updated version of that library. My bindings library is outdated compared to it.

You can try using a Xamarin Binding of that that project directly, updating my binding library to use a newer version.