android - Programmatically set the Typeface and set text style in xml not working -
I have a textview defined in the xml, now I'm setting the program this way:
textView.setTypeface (APP_FONT_REGULAR); // which is a custom font in assests (.ttf file) I now set android: textStyle = "bold" xml But is it not enforcing bold?
What is the reason for me that I should implement my own typefile and set it in bold too.
I have to apply my own typeface and also set it in bold.
You can set the presence when you call setTypeface () textView.setTypeface (APP_FONT_REGULAR, Typeface BBOLD); This fixes your problem. Check it out.
Comments
Post a Comment