zoukankan      html  css  js  c++  java
  • 如何在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);

  • 相关阅读:
    【leetcode】图像渲染
    【leetcode】不邻接植花
    052-75
    052-74
    052-73
    052-71
    052-70
    052-69
    052-67
    052-66
  • 原文地址:https://www.cnblogs.com/feitianlee/p/3966390.html
Copyright © 2011-2022 走看看