如何在textview 中指定某段文本为另外字体

TextView view1 = (TextView) this.getView().findViewById(R.id.earn_coins_second_tips);

        SpannableStringBuilder style = new SpannableStringBuilder(view1.getText());

        style.setSpan(new StyleSpan(android.graphics.Typeface.BOLD), 29, 40, Spannable.SPAN_EXCLUSIVE_INCLUSIVE);

        view1.setText(style);

posted @ 2014-09-11 14:22  feitianlee  阅读(172)  评论(0编辑  收藏  举报