2017-03-04 32 views

回答

0

您可以使用Spannable

Spannable spannable = new SpannableString(YOUR_TEXT); 

spannable.setSpan(new ForegroundColorSpan(Color.WHITE), text.length(), (text + Your_textviewlength, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); 

textView.setText(spannable, TextView.BufferType.SPANNABLE); 
0

使用的顏色此設置你的顏色:

setTextColor(getResources().getColor(R.color.red)); 
0

你可以試試這個

yourTextView.setTextColor(color); 

或者,你的情況:yourTextView.setTextColor(0xffbdbdbd);

相關問題