1.使用不同的字库 mLocalClock.setTypeface(Typeface.SANS_SERIF); Typeface face = Typeface.createFromAsset(getAssets(),"fonts/SIMFANG.TTF"); 2.设置不同的字库,字体在textview中 SpannableString word = new SpannableString("12:45"); word.setSpan(new TypefaceSpa
1.方式1: LinearLayout layout = new LinearLayout(this); LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); TextView textView = new TextView(this); String html = "有问题:\n"; html +=&