Answers for "bold text in xml android"

2

android font bold xml

<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textStyle="bold"
    android:text="@string/app_name"
    android:layout_gravity="center" 
/>
Posted by: Guest on October-08-2020
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

Browse Popular Code Answers by Language