setTextcolor android studio code example
Example 1: android settextcolor programmatically
mTextView.setTextColor(Color.parseColor("#bdbdbd"));
Example 2: text.settextcolor android
//From API 23 onward, getResources().getColor() is deprecated.
textView.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.color_black));