Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Asynchronous animation for items in a RecyclerView #135

Open
PavelLida opened this issue Sep 2, 2022 · 0 comments
Open

Asynchronous animation for items in a RecyclerView #135

PavelLida opened this issue Sep 2, 2022 · 0 comments

Comments

@PavelLida
Copy link

PavelLida commented Sep 2, 2022

Hi. There is such a problem.
I have a RecyclerView list which contains, let's say 100 elements, each element is a viewHolder -> textView wrapped in a shimmer.

When the RecyclerView calls the bind method I start the shimmer animation and my text starts to flicker(shimmer effect), it is ok, good.

BUT as soon as I scroll down the list below, the next elements also start the shimmer (because bind is called for new item).
And it turns out that the start time of the shimmer is different for elements.

Is there a way to make the shimmer animation for all elements in list synchronous?

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

No branches or pull requests

1 participant