Android的TextView设置加粗对汉字无效
//not work textView.setTypeface(Typeface.defaultFromStyle(Typeface.BOLD));
//work! static public void setTextBold(TextView textView, boolean isBold) { try { if(textView != null) { Paint paint = textView.getPaint(); if(paint != null) { paint.setFakeBoldText(isBold); } } } catch (Throwable var3) { } }
posted on 2018-04-19 11:43 albert1017 阅读(3582) 评论(0) 编辑 收藏 举报