13
我想将文本TextView
设置为粗体样式代码而不是XML?android:如何通过编码设置文本视图为粗体而不是通过XML
我想将文本TextView
设置为粗体样式代码而不是XML?android:如何通过编码设置文本视图为粗体而不是通过XML
为TextView的设定大胆使用这种编码
..
TextView.setTypeface(null, Typeface.BOLD);
textView.setTypeface(null, Typeface.BOLD_ITALIC);
textView.setTypeface(null, Typeface.BOLD);
textView.setTypeface(null, Typeface.ITALIC);
textView.setTypeface(null, Typeface.NORMAL);
和:
import android.graphics.Typeface;