Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

text.settextcolor android

//From API 23 onward, getResources().getColor() is deprecated.
textView.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.color_black));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #android
ADD COMMENT
Topic
Name
9+7 =