Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

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

Open
chathurabuddi opened this issue Jun 1, 2020 · 8 comments
Open

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

chathurabuddi opened this issue Jun 1, 2020 · 8 comments

Comments

@chathurabuddi
Copy link

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
Copy link

mengxn commented Jun 2, 2020

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

@chathurabuddi
Copy link
Author

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
Copy link

mengxn commented Jun 9, 2020

you should config this

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

@chathurabuddi
Copy link
Author

@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
Copy link

CodeIdeal commented Aug 25, 2020

why not use tools:xxx namespace?

@chathurabuddi
Copy link
Author

why not use tools:xxx namespace?

can you please elaborate more on this?

@xiphirx
Copy link
Contributor

xiphirx commented Mar 17, 2021

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

Did you find any solution to this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants