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

Preview not working correctly after v0.2.0 in Design View #100

Open chathurabuddi opened 4 years ago

chathurabuddi commented 4 years ago

This is not rendering correctly after upgrading from v0.1.0 to v0.5.0. It is showing a gray color box instead of actual elements inside the layout.

Design View Preview with ShimmerFrameLayout v0.1.0 1

Design View Preview with ShimmerFrameLayout v0.5.0 2

mengxn commented 4 years ago

base alpha is 0.3 default in version 0.5.0, you can change it in xml app:shimmer_base_alpha="0.3"

chathurabuddi commented 4 years ago

base alpha is 0.3 default in version 0.5.0, you can change it in xml app:shimmer_base_alpha="0.3"

No, if I use app:shimmer_base_alpha="1", there is no shimmer animation shown when running.

mengxn commented 4 years ago

you should config this

// apply custom color
app:shimmer_colored="true"
app:shimmer_base_color="color"
app:shimmer_highlight_color="color"
chathurabuddi commented 4 years ago

@mengxn, This will change the base and highlight colors, But I don't want to change default colors. In the v0.1.0, the preview worked without any issue.

CodeIdeal commented 3 years ago

why not use tools:xxx namespace?

chathurabuddi commented 3 years ago

why not use tools:xxx namespace?

can you please elaborate more on this?

xiphirx commented 3 years ago

What was the behavior like for 0.1.0? We didnt add specific editor support so I'm not sure what you're expecting it to look like.

konstantinos-apostolakis commented 2 years ago

Did you find any solution to this?