Make text bold and italic
Asked Answered
T

4

16

Is there anyway to make Android text in the xml file both bold and italics?

SAMPLE

Tammietammuz answered 29/8, 2012 at 18:1 Comment(1)
try <Textview android:textStyle="bolditalic" />Rubeola
R
50

Yes, just add android:textStyle="bold|italic".

Rivalee answered 29/8, 2012 at 18:3 Comment(2)
I believe you can just use textStyle="bolditalic"Afroamerican
It's referenced here, but not listed in the table, but I believe you're correct. Either way should work. :)Rivalee
A
3

have you tried this

android:textStyle="italic|bold"
Ann answered 29/8, 2012 at 18:4 Comment(0)
B
1

try this:

<Textview android:textStyle="bolditalic" ....

for more info see http://developer.android.com/reference/android/widget/TextView.html#attr_android:textStyle

Biracial answered 29/8, 2012 at 18:5 Comment(0)
K
0
<TextView
    android:id="@+id/mTextView"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textStyle="bold|italic"
    android:text="YOUR_TEXT"
/>
Karimakarin answered 29/8, 2012 at 18:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.