Set TextView style bold or italic and preserve previous TypeFace

textView.setTypeface(null, Typeface.BOLD_ITALIC);
textView.setTypeface(null, Typeface.BOLD);
textView.setTypeface(null, Typeface.ITALIC);
textView.setTypeface(null, Typeface.NORMAL);

To keep the previous typeface

textView.setTypeface(textView.getTypeface(), Typeface.BOLD_ITALIC)

References
https://stackoverflow.com/questions/6200533/set-textview-style-bold-or-italic

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.