如何设置TextView的样式(粗体OT斜体)在Java和不使用XML布局?
在换句话说,我需要写机器人:TEXTSTYLE
与Java
textView.setTypeface(空,Typeface.BOLD_ITALIC);
textView.setTypeface(NULL,Typeface.BOLD);
textView.setTypeface(NULL,Typeface.ITALIC);
textView.setTypeface(NULL,Typeface.NORMAL);
使用你想要什么。
How to set TextView style (bold ot italic) with in Java and without using XML layout?
In other words I need to write android:textStyle
with Java.
textView.setTypeface(null, Typeface.BOLD_ITALIC);
textView.setTypeface(null, Typeface.BOLD);
textView.setTypeface(null, Typeface.ITALIC);
textView.setTypeface(null, Typeface.NORMAL);
Use what you want.