android textView.setTextColor(); code example
Example: text.settextcolor android
//From API 23 onward, getResources().getColor() is deprecated.
textView.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.color_black));
//From API 23 onward, getResources().getColor() is deprecated.
textView.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.color_black));