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.32k stars 695 forks source link

Question - Can we ignore any child view(s) from shimmering? #140

Open RahulSDeshpande opened 1 year ago

RahulSDeshpande commented 1 year ago

Currently any view under the <ShimmerFrameLayout> will shimmer by default.

I was wondering whether this shimmer library has a feature where - I can ignore any child view(s) from shimmering!!

Example:

<com.facebook.shimmer.ShimmerFrameLayout>
    <LinearLayout>
        <TextView id="tv1"/>
        <TextView id="tv2"/>
        <TextView id="tv3"/>
    </LinearLayout>
</com.facebook.shimmer.ShimmerFrameLayout>

Can Shimmer library ignore tv2 TextView from shimmering?

I know the obvious answer would be - remove that from the layout.. 😄 But I would like to keep that & still ignore its shimmering.

Any answers would highly be appreciated!! 👍🏼 Cheers!!