change text color programmatically android code example
Example 1: android settextcolor programmatically
mTextView.setTextColor(Color.parseColor("#bdbdbd"));
Example 2: change color of text in textview android
TextView text = (TextView) findViewById(R.id.text);
text.setTextColor(Color.parseColor("#FFFFFF"));