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

Shimmer produce black line with clip_children=false #83

Open ReeMiXeR opened 5 years ago

ReeMiXeR commented 5 years ago

Hello! Thank you for cool library! I faced with problem, if I add shimmer_clip_to_children=true, shimmer produce black line instead of white line. if shimmer_clip_to_children=false all is ok and I have white line.

My shimmer code -

<com.facebook.shimmer.ShimmerFrameLayout
        android:id="@+id/shimmer_view_container"
        android:layout_width="match_parent"
        android:layout_height="400dp"
        android:background="@color/white"
        app:shimmer_clip_to_children="true"
        app:shimmer_auto_start="true"
        app:shimmer_base_alpha="1"
        app:shimmer_colored="false"
        app:shimmer_direction="left_to_right"
        app:shimmer_highlight_alpha="0.4"
        app:shimmer_tilt="0.0"/>
Screenshot 2019-04-11 at 02 13 42

What I do wrong?

p.s. I use 0.4.0 version