开发者

android:how to set text view as bold by coding not via XML

I want to set text of TextView as Bo开发者_开发问答ld style from code instead of XML?


for textview set bold by coding

using this..

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);

And:

import android.graphics.Typeface;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜