SpannableString msp = new SpannableString("您还剩下 2 次机会");
msp.setSpan(new AbsoluteSizeSpan(Utils.convertDpToPixel(20, getContext())), 5, 6, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
msp.setSpan(new StyleSpan(Typeface.BOLD), 5, 6, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
textView.append(msp);
网友评论