Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When Swipe item, another item in list automatically swipe #18 #120

Open
kishorramani opened this issue Sep 25, 2020 · 3 comments
Open

When Swipe item, another item in list automatically swipe #18 #120

kishorramani opened this issue Sep 25, 2020 · 3 comments

Comments

@kishorramani
Copy link

Check this video

https://drive.google.com/file/d/1ix1Yxdh-EcUAVQ0rhrMNdcLU6BBgSTb1/view

Any solution for this?

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

@jserwiak
Copy link

jserwiak commented 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
Copy link

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
Copy link

jserwiak commented 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants