I have a button which contains a drawable and text. I want the background of the button to be different than the normal one provided (preferably a plain color). This works f
EXAMPLE:
XML file saved at res/color/button_text.xml:
This layout XML will apply the color list to a View:
@color/button_text
res/color/button_text.xml
This is the example provided by Google in the ColorStateList Resource: https://developer.android.com/guide/topics/resources/color-list-resource.html
I think colorStateList must be used to change color of textView of a widget.