LoadingButtonAndroid icon indicating copy to clipboard operation
LoadingButtonAndroid copied to clipboard

Change Button Color Programmatically

Open rtsketo opened this issue 4 years ago • 2 comments

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

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

rtsketo avatar May 28 '20 08:05 rtsketo

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.

leandroBorgesFerreira avatar Mar 23 '21 17:03 leandroBorgesFerreira

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.

Pei116 avatar Sep 15 '21 03:09 Pei116