TextView 中文加粗


在xml文件中使用android:textStyle="bold" 能夠將英文設置成粗體,可是不能將中文設置成粗體
將中文設置成粗體的方法是:android

 TextView tv = (TextView)findViewById(R.id.TextView01);
TextPaint tp = tv.getPaint();
tp.setFakeBoldText(true);spa

相關文章
相關標籤/搜索