I need to change text color when state change(pressed, focus)…
How to set the text color of a TextView using ColorsStateList?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you need to set the colors in code (using ColorStateList), but still want to keep the color states in an XML, you might want to use this:
res/color/your_colors.xml