Git Product home page Git Product logo

Comments (6)

rey5137 avatar rey5137 commented on June 19, 2024

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

from material.

patelakshay13890 avatar patelakshay13890 commented on June 19, 2024

through Code we cannot have these Effect ???

On Tue, Apr 14, 2015 at 1:47 PM, Rey Pham [email protected] 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).

from material.

patelakshay13890 avatar patelakshay13890 commented on June 19, 2024

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

On Tue, Apr 14, 2015 at 3:46 PM, akshay patel [email protected]
wrote:

through Code we cannot have these Effect ???

On Tue, Apr 14, 2015 at 1:47 PM, Rey Pham [email protected]
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).

from material.

patelakshay13890 avatar patelakshay13890 commented on June 19, 2024

Waiting for positive response..!!

On Tue, Apr 14, 2015 at 3:47 PM, akshay patel [email protected]
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 <[email protected]

wrote:

through Code we cannot have these Effect ???

On Tue, Apr 14, 2015 at 1:47 PM, Rey Pham [email protected]
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).

from material.

rey5137 avatar rey5137 commented on June 19, 2024

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.

from material.

patelakshay13890 avatar patelakshay13890 commented on June 19, 2024

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 [email protected] 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).

from material.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.