Answers for "which method is used to set the color of text in android"

0

text.settextcolor android

//From API 23 onward, getResources().getColor() is deprecated.
textView.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.color_black));
Posted by: Guest on March-03-2021

Code answers related to "which method is used to set the color of text in android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language