android:textStyle - Set the textStyle in a TextView/EditText (bold, italic, bold-italic)

How to Set the textStyle in a TextView/EditText (bold, italic, bold-italic)

added in API Level 1

Default text typeface style.

1. Create an Android project, if you don't already have one.

2. Add a TextView in the main.xml file.

3. In the main.xml file, add the code below.
This will bold the text.

<TextView
        ...
       android:textStyle = "bold"
/>

4. To italicize the text use android:textStyle = "italic"
To bold and italicize the text use android:textStyle = "bold|italic"
There is android:textStyle = "normal" This just makes the text normal.

5. Compile and run!
http://developer.android.com/reference/android/widget/TextView.html#attr_android:textStyle
http://developer.android.com/reference/android/R.attr.html#textStyle