Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placeholder not working as expected #3

Open
hakerjack opened this issue Mar 14, 2016 · 3 comments
Open

Placeholder not working as expected #3

hakerjack opened this issue Mar 14, 2016 · 3 comments

Comments

@hakerjack
Copy link

Hi, I was playing with your OnboardingWithPlaceholderActivity and I found the layer-list drawable that you use for the placeholder doesn't render as what is shown in your post. The whole screen is blue instead of having the height you specify.

After some experiments, I was able to fix the problem by swapping the order of the items in the layer-list drawable (grey color on top of blue color) and set a top offset for grey which equals to the height of the toolbar. I don't know why setting a height for item in layer-list doesn't work for me.

@hakerjack
Copy link
Author

Here's a gif for the bug I see: http://g.recordit.co/d4SYFvzlTU.gif

@SimonMarquis
Copy link

Unfortunately, this workaround introduces overdraw as the blue color is filling up the whole screen below the grey color...

@YuanLiou
Copy link

It's seems only work on Android version above Marshmallow.
Just preview ll_toolbar_placeholder.xml Android Studio will render the result.

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

No branches or pull requests

3 participants