Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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)
 
PREVIOUS NEXT
Tagged: #textview #set #text #bold #programmatically
ADD COMMENT
Topic
Name
1+8 =