Android(安卓)中文设置成粗体的方法
16lz
2022-05-16
在xml文件中使用android:textStyle="bold" 可以将英文设置成粗体,但是不能将中文设置成粗体,
将中文设置成粗体的方法是: TextView tv = (TextView)findViewById(R.id.TextView01);
TextPaint tp = tv.getPaint();
tp.setFakeBoldText(true);
更多相关文章
- Android实现为GridView添加边框效果
- Android中Dialog的使用
- Android(安卓)中文API (70) —— BluetoothDevice[蓝牙]
- Android(安卓)打开设置的各个页面
- Android权限设置android.permission完整列表
- 设备驱动-----Android关机流程总结
- Android(安卓)Visibility属性详解
- android 开发之旅, should use @string resource警告
- android 界面布局 很好的一篇总结 【转】