How to display double quotes(") symbol in a TextView?

Viewed 110648

I'm trying to display some words in double quotes in TextView in an XML file, but it's not working.

<TextView 
style="@style/TextStyle" 
android:text="message "quote string 1" and "quote string 2" end message" 
android:id="@+id/lblAboutPara3" 
android:autoLink="web"/>

Does anyone know a solution for this?

9 Answers

Use single quotes to wrap the message and you can use as many double-quotes as you want inside the string.

android:text='message "quote string 1" and "quote string 2" end message'
Related