LoadingButtonAndroid
LoadingButtonAndroid copied to clipboard
Change Button Color Programmatically
Is it possible to change the color of the button programmatically?
Providing a drawable as background makes initalCorner and finalCorner to be ignored.
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.
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.