Alex Rivera | Logout

How to set text color of a TextView programmatically

Asked 2011-12-12T09:39:45.703
355

How can I set the text color of a TextView to #bdbdbd programmatically ?

Edit
Report

1 Answer

39
yourTextView.setTextColor(color);

Or, in your case: yourTextView.setTextColor(0xffbdbdbd);

answered 2011-12-12T09:42:32.613

Your Answer