You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When Swipe item, another item in list automatically swipe #18 #120
Also, I want to implement a favorite option
I implement it and when I add one item in the favorite list (favorite item's image drawable is changed) another item's image drawable is automatically changed
I have noticed same issue. It swipes every 10 item, so if you swipe 1st item then 11th item on the list will be swiped as well etc.
Is there any fix for this?
This issue occurs because the row in the list is recycled. Reset the state of the view to closed when onBind is called. You'll need to keep track of this obviously in order to correctly set the state as opened vs closed.
Thanks for that, after your reply I went back to the tutorial I was doing and It turns out I missed a line of code related to what you have said. Cheers
Activity
jserwiak commentedon May 2, 2021
I have noticed same issue. It swipes every 10 item, so if you swipe 1st item then 11th item on the list will be swiped as well etc.
Is there any fix for this?
notandyvee commentedon May 2, 2021
This issue occurs because the row in the list is recycled. Reset the state of the view to closed when onBind is called. You'll need to keep track of this obviously in order to correctly set the state as opened vs closed.
jserwiak commentedon May 2, 2021
Thanks for that, after your reply I went back to the tutorial I was doing and It turns out I missed a line of code related to what you have said. Cheers