Noby Noby - 2 years ago 250
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 Source

Use,..

Color.parseColor("#bdbdbd");

like,

mTextView.setTextColor(Color.parseColor("#bdbdbd"));
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download