shimmer-android icon indicating copy to clipboard operation
shimmer-android copied to clipboard

Preview not working correctly after v0.2.0 in Design View

Open chathurabuddi opened this issue 4 years ago • 8 comments

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

chathurabuddi avatar Jun 01 '20 08:06 chathurabuddi

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

mengxn avatar Jun 02 '20 08:06 mengxn

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.

chathurabuddi avatar Jun 04 '20 23:06 chathurabuddi

you should config this

// apply custom color
app:shimmer_colored="true"
app:shimmer_base_color="color"
app:shimmer_highlight_color="color"

mengxn avatar Jun 09 '20 10:06 mengxn

@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.

chathurabuddi avatar Jun 17 '20 11:06 chathurabuddi

why not use tools:xxx namespace?

CodeIdeal avatar Aug 25 '20 09:08 CodeIdeal

why not use tools:xxx namespace?

can you please elaborate more on this?

chathurabuddi avatar Aug 25 '20 11:08 chathurabuddi

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.

xiphirx avatar Mar 17 '21 03:03 xiphirx

Did you find any solution to this?