Skip to content

Make shadows have buttons on pre-L devices. #843

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

Merged
merged 3 commits into from
Aug 2, 2017

Conversation

samtstern
Copy link
Contributor

@samtstern samtstern commented Aug 1, 2017

See #842

Before

After

See #842

Change-Id: Ifbb06228dae6cccdcc0a9a45656a1a2cae4ef805
Copy link
Collaborator

@SUPERCILEX SUPERCILEX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samtstern LGTM as long as this doesn't change the post-L look!

@SUPERCILEX
Copy link
Collaborator

Oh, just saw #842 (comment). So yeah, awesome! 😄

@SUPERCILEX
Copy link
Collaborator

@samtstern ooooooooooh, actually I think we can add some gradients! This StackOverflow post is for rounded corners but I think the same technique could apply. What do you think? 😀

@samtstern
Copy link
Contributor Author

@SUPERCILEX nice, I will try something like that.

Change-Id: I8e4615bbd5acdea8508cbe5e32696d7624e6f0ed
@samtstern
Copy link
Contributor Author

@SUPERCILEX played with it for a little bit, none of the gradient types offered in XML drawables are suited for this. Linear gradients band out from the center, and the radial and sweep gradients just don't offer enough configuration to look good on a big rectangle.

Change-Id: I66870fa42f61cf616317bf9083ec77200dabdce6
@SUPERCILEX
Copy link
Collaborator

@samtstern oh well, we tried. 😀

@samtstern samtstern merged commit 7f546f0 into version-2.1.2-dev Aug 2, 2017
@samtstern samtstern deleted the fix-button-shadow branch August 2, 2017 15:33
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

Successfully merging this pull request may close these issues.

2 participants