修改部分文本的大小,颜色,字体
final SpannableStringBuilder sb = new SpannableStringBuilder("fasfdsf sdf sfvfss");
final ForegroundColorSpan cs = new ForegroundColorSpan(Color.rgb(158, 158, 158));
final StyleSpan ss = new StyleSpan(android.graphics.Typeface.BOLD);
final AbsoluteSizeSpan as = new AbsoluteSizeSpan(10);
sb.setSpan(cs, 4, 10, Spannable.SPAN_INCLUSIVE_INCLUSIVE);
sb.setSpan(ss, 4, 10, Spannable.SPAN_INCLUSIVE_INCLUSIVE);
sb.setSpan(as, 4, 10, Spannable.SPAN_INCLUSIVE_INCLUSIVE);
tv.setText(sb);
//-----------------------------------
ss = new SpannableString(msg);
ss.setSpan(new ForegroundColorSpan(Color.GRAY), 0, length - 1,
Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
textView.setText(ss);