80,471
社区成员




TextView textview=(TextView)findViewById(R.id.textView);
String str="adsjoiasdjpaisdjpaidj";
SpannableStringBuilder style=new SpannableStringBuilder(str);
style.setSpan(new ForegroundColorSpan(Color.RED),3,8,Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
textview.setText(style);
这可以改变TextView里文本的颜色,把字符str的3-8位变成红色的,你用个handler启动个线程来变换颜色,应该可以实现