推荐安卓开发神器(里面有各种UI特效和android代码库实例)
SpannableStringBuilder style=new SpannableStringBuilder(string); style.setSpan(new ForegroundColorSpan(Color.RED,start,end,Spannable.SPAN_EX_...)); textView.setText(style); |
SpannableStringBuilder style=new SpannableStringBuilder(string); style.setSpan(new ForegroundColorSpan(Color.RED,start,end,Spannable.SPAN_EX_...)); textView.setText(style); |