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;
精彩评论