I want to make a TextView‘s content bold, italic and underlined. I tried the following code and it works, but doesn’t underline.
<Textview android:textStyle="bold|italic" ..
How do I do it? Any quick ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t know about underline, but for bold and italic there is
"bolditalic". There is no mention of underline here: http://developer.android.com/reference/android/widget/TextView.html#attr_android:textStyleMind you that to use the mentioned
bolditalicyou need to, and I quote from that pageso you’d use
bold|italicYou could check this question for underline: Can I underline text in an android layout?