Noby Noby - 5 months ago 93
Android Question

How to set text color to a text view programmatically

How can I set Text Color of a text view to

#bdbdbd
programatically?

Answer

Use,..

Color.parseColor("#bdbdbd");

like,

mTextView.setTextColor(Color.parseColor("#bdbdbd"));