Answers for "android studio textview bold programmatically"

5

how to set text style to bold in android programmatically

textView.setTypeface(null, Typeface.BOLD_ITALIC);
textView.setTypeface(null, Typeface.BOLD);
textView.setTypeface(null, Typeface.ITALIC);
textView.setTypeface(null, Typeface.NORMAL);
Posted by: Guest on September-08-2020
0

textview set text bold programmatically

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)
Posted by: Guest on June-03-2021

Code answers related to "android studio textview bold programmatically"

Browse Popular Code Answers by Language