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

后端 未结 9 889
天涯浪人
天涯浪人 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:24

    use escape characters. To display double quote use \"

    Your code will be

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

提交回复
热议问题