Closed Lexycon closed 5 years ago
I will take a look at this
If I disable the call to setBackground
(this line: https://github.com/leandroBorgesFerreira/LoadingButtonAndroid/blob/master/loading-button-android/src/main/java/br/com/simplepass/loading_button_lib/customViews/CircularProgressButton.java#L148) then selectors work, but I have no idea what consequences this has.
Hi. This button doesn't support change of state in a selector. This is due the fact that the only drawable that the corners can be set is the gradient drawable. So the selector is cast to gradient drawable.
The CircularProgressButton won't work correctly with my gradient_button.xml background. In fact it doesn't change the color when I click on it. So it simply doesn't execute the android:state_pressed="true" part... Using this gradient_button.xml for a default button, it works perfectly.
layout_main.xml
style.xml
gradient_button.xml