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

Remove Animation Is Applied To All Items Strange Behaviour #188

Open
lastpeony opened this issue Sep 9, 2020 · 1 comment
Open

Remove Animation Is Applied To All Items Strange Behaviour #188

lastpeony opened this issue Sep 9, 2020 · 1 comment

Comments

@lastpeony
Copy link

I am trying to apply slide to right animation to only removed item but for some reason all items in recyclerview disappear first and then animated back to their position strangely.
Please watch the following video.
https://i.stack.imgur.com/s14Jr.gif

Here is my code its very simple:

   friends_screen_friendlist_recyclerview.itemAnimator = SlideInRightAnimator()
                   friends_screen_friendlist_recyclerview.itemAnimator?.apply {
                        addDuration = 120;
                       removeDuration = 1000;
                        moveDuration = 500;
                        changeDuration = 500;
                   }
    friendItems.removeAt(0)

               friends_screen_friendlist_recyclerview.adapter!!.notifyItemRemoved(0)

@asthagarg2428
Copy link

Any fix ?

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

2 participants