Android 字体加粗的两种方法
16lz
2021-01-23
Android中字体加粗
一、在xml文件中使用
android:textStyle=”bold”
二、但是不能将中文设置成粗体,将中文设置成粗体的方法是:
TextView tv = (TextView)findViewById(R.id.TextView01); TextPaint tp = tv.getPaint(); tp.setFakeBoldText(true);
转载自: http://blog.csdn.net/to_cm/article/details/6002812
更多相关文章
- Android 中文API (33) —— Checkable
- android TextView自定义字体样式
- Android TextView使用HTML处理字体样式、显示图片等
- android 中文乱码问题
- android中文字高亮设置案例
- 【转】Linux Kernel and Android 休眠与唤醒(中文版)
- Android2.2 API 中文文档系列(9) ―― ZoomButton
- 安装Android Studio遇到中文乱码的解决方法