I\'m trying to display some words in double quotes, in Text view in in xml file. But its not working. Pls help me.
If you have a double-quote in your string, you must escape it (\"). Surrounding the string with single-quotes does not work.
In strings.xml
<string name="good_example">This is a \"good string\".</string>
Source :http://developer.android.com/guide/topics/resources/string-resource.html
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'
use escape characters
. To display double quote use \"
Your code will be
android:text="message \"quote string 1\" and "quote string 2\" end message"