Skip to content Skip to sidebar Skip to footer

Android Textcolor Won't Change Colour

I have tried... android:textColor='#ff0000' & TextView app_nameTextView = (TextView) findViewById(R.id.app_name); app_nameTextView.setTextColor(getResources().getColor(R.co

Solution 1:

try this

 tv.setTextColor(Color.WHITE);

Solution 2:

try android:textColor="#FFFFFF" hex code for white is #FFFFFF

Solution 3:

What about Spannables? For example:

Spannable spanText = new SpannableString("INFO: Some spanned result.");
spanText.setSpan(new ForegroundColorSpan(Color.GREEN), 0, spanText.length(), 0); 

area.append(spanText);

Post a Comment for "Android Textcolor Won't Change Colour"