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

后端 未结 9 894
天涯浪人
天涯浪人 2020-12-05 01:27

I\'m trying to display some words in double quotes, in Text view in in xml file. But its not working. Pls help me.

    

        
9条回答
  •  悲&欢浪女
    2020-12-05 02:16

    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'
    

提交回复
热议问题