ITeye博客

Android中字体加粗

logger · 2012-05-23 17:44 · android · 移动开发 · Markdown

Android中字体加粗

Android中字体加粗 一、在xml文件中使用android:textStyle=”bold” 二、但是不能将中文设置成粗体,将中文设置成粗体的方法是: TextView tv = (TextView)findViewById(R.id.TextView01); TextPaint tp = tv.getPaint(); tp.setFakeBoldText(true);

PS: android:duplicateParentState="true"

继承父组件状态

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。