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

Change Button Color Programmatically #161

Open
rtsketo opened this issue May 28, 2020 · 2 comments
Open

Change Button Color Programmatically #161

rtsketo opened this issue May 28, 2020 · 2 comments

Comments

@rtsketo
Copy link

rtsketo commented May 28, 2020

Is it possible to change the color of the button programmatically?

Providing a drawable as background makes initalCorner and finalCorner to be ignored.

@leandroBorgesFerreira
Copy link
Owner

Did you use shape or selector in the drawable? This library has a bug with shape =|. Wrap you shape inside a selector and it should be fine.

@Pei116
Copy link

Pei116 commented Sep 15, 2021

It used to work before but recently I found it's no longer showing loading animation properly (button is still in rectangular shape) when used with background.
And the solution to that is wrapping by selector in drawable and use that in background instead of raw color, as mentioned by the author.

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