Answers for "how to set text color in java android"

1

java set textview color

textview.setTextColor(this.getResources().getColor(R.color.orange));
Posted by: Guest on November-08-2020
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 "how to set text color in java android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language