daimajia / AndroidSwipeLayout

The Most Powerful Swipe Layout!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SwipeLayout stays open for random recycleview items

EonKid opened this issue · comments

I have implemented SwipeLayout for both side swipe .Following the step to reproduce the bug:

  1. Open any one side in recycleview with swipelayout
    2.After that not close the Swipelayout row item .
    3.Scroll the Recycleview ,random row item will open when i scroll .

RecyclerView does exactly what it's name says, it recycles. Unless you properly reset all the item views in the adapter when the binding occurs these kind of issues will appear. Depending on implementation, you may also need to have the items in the adapter have a proper equals() method overridden to check for unique properties, otherwise the same thing can happen where the list thinks it's showing the same item, at least it's a fix I've had to do in some places.

Unless you show some code it'll be impossible to actually know why it's happening, otherwise, it's just the usual recycling occurring and not an issue with the library.

bump, i have same issue. Just standard adapter and DiffUtills, Maybe some ideas ?