In XML, we can set a text color by the textColor attribute, like android:textColor=\"#FF0000\". But how do I change it by coding?
textColor
android:textColor=\"#FF0000\"
I tried s
Similarly, I was using color.xml:
color.xml
#ffffff #000000
For setting the TextView background like:
TextView
textView.setTextColor(R.color.white);
I was getting a different color, but when I used the below code I got the actual color.
textView.setTextColor(Color.parseColor("#ff6363"));