facebookarchive / shimmer-android

An easy, flexible way to add a shimmering effect to any view in an Android app.
http://facebook.github.io/shimmer-android/
Other
5.31k stars 698 forks source link

Asynchronous animation for items in a RecyclerView #135

Open PavelLida opened 1 year ago

PavelLida commented 1 year ago

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

When the RecyclerView calls the bindmethod 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?