Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of How to slow down the speed of shimmer effect without wasting too much if your time.
The question is published on by Tutorial Guruji team.
The question is published on by Tutorial Guruji team.
I have tried the demo of shimmer FrameLayout
but it goes very fast and I want to slow down the speed of this effect. How to slow down the speed of shimmer
effect and how to use the properties of this library?
Answer
You need to use app:shimmer_duration="1500"
to set speed of animation in ShimmerFrameLayout
Try this
<com.facebook.shimmer.ShimmerFrameLayout android:layout_width="match_parent" android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" app:shimmer_duration="1500"> <View android:layout_width="100dp" android:layout_height="8dp" android:background="#dddddd" /> </com.facebook.shimmer.ShimmerFrameLayout>
We are here to answer your question about How to slow down the speed of shimmer effect - If you find the proper solution, please don't forgot to share this with your team members.