Skip to content

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

Open

Description

@kishorramani

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

Activity

  1. jserwiak commented on May 2, 2021

    @jserwiak

    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?

  2. notandyvee commented on May 2, 2021

    @notandyvee

    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.

  3. jserwiak commented on May 2, 2021

    @jserwiak

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions