I am using a selector to change the background drawable of the button in different states (focused, pressed, normal). Is there any way to change the text color too? I want to provide various text colors for various button states, but I want to do it from the xml. Is this possible?
I am using a selector to change the background drawable of the button in
Share
Yes it can be done. You just do the same way you do for the button drawable. Then assign it to
android:textColor="@drawable/yourselector"