Answers for "textview settextcolor android"

4

change color of text in textview android

TextView text = (TextView) findViewById(R.id.text);
text.setTextColor(Color.parseColor("#FFFFFF"));
Posted by: Guest on August-20-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 "Java"

Java Answers by Framework

Browse Popular Code Answers by Language