📌  相关文章
📜  textview 以编程方式设置文本粗体 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:37.745000             🧑  作者: Mango

代码示例1
textView.setTypeface(null, Typeface.BOLD_ITALIC);
textView.setTypeface(null, Typeface.BOLD);
textView.setTypeface(null, Typeface.ITALIC);
textView.setTypeface(null, Typeface.NORMAL);

//To keep the previous typeface

textView.setTypeface(textView.getTypeface(), Typeface.BOLD_ITALIC)