Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Shadow in Button #46

Closed
patelakshay13890 opened this issue Apr 14, 2015 · 6 comments
Closed

Shadow in Button #46

patelakshay13890 opened this issue Apr 14, 2015 · 6 comments

Comments

@patelakshay13890
Copy link

How can i apply Shadow like Z-scale in your Button ???
rectangle_button

@rey5137
Copy link
Owner

rey5137 commented Apr 14, 2015

Currently Button doesn't support dynamic shadow. You should use a 9 patch drawable as your button's background.

@patelakshay13890
Copy link
Author

through Code we cannot have these Effect ???

On Tue, Apr 14, 2015 at 1:47 PM, Rey Pham notifications@github.com wrote:

Currently Button doesn't support dynamic shadow. You should use a 9 patch
drawable as your button's background.


Reply to this email directly or view it on GitHub
#46 (comment).

@patelakshay13890
Copy link
Author

If I have 30 different Coloured Buttons , then it will become tedious
task...

On Tue, Apr 14, 2015 at 3:46 PM, akshay patel patelakshay.13890@gmail.com
wrote:

through Code we cannot have these Effect ???

On Tue, Apr 14, 2015 at 1:47 PM, Rey Pham notifications@github.com
wrote:

Currently Button doesn't support dynamic shadow. You should use a 9
patch drawable as your button's background.


Reply to this email directly or view it on GitHub
#46 (comment).

@patelakshay13890
Copy link
Author

Waiting for positive response..!!

On Tue, Apr 14, 2015 at 3:47 PM, akshay patel patelakshay.13890@gmail.com
wrote:

If I have 30 different Coloured Buttons , then it will become tedious
task...

On Tue, Apr 14, 2015 at 3:46 PM, akshay patel <patelakshay.13890@gmail.com

wrote:

through Code we cannot have these Effect ???

On Tue, Apr 14, 2015 at 1:47 PM, Rey Pham notifications@github.com
wrote:

Currently Button doesn't support dynamic shadow. You should use a 9
patch drawable as your button's background.


Reply to this email directly or view it on GitHub
#46 (comment).

@rey5137
Copy link
Owner

rey5137 commented Apr 15, 2015

If you want to create a shadow colored button through code, you can create a custom drawable that draw solid color and shadow yourself, then set it as button's background via setBackground(Drawable) method.

@patelakshay13890
Copy link
Author

Since I want backward compatibility , so we can't do this Shadow effect in
this lib project itself ??

On Wed, Apr 15, 2015 at 10:16 PM, Rey Pham notifications@github.com wrote:

If you want to create a shadow colored button through code, you can create
a custom drawable that draw solid color and shadow yourself, then set it as
button's background via setBackground(Drawable) method.


Reply to this email directly or view it on GitHub
#46 (comment).

@rey5137 rey5137 closed this as completed May 6, 2015
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

2 participants