How to have “&” i.e and symbol in Android TextView

后端 未结 8 516
半阙折子戏
半阙折子戏 2020-12-24 11:51

I want to have some simple text in textView..

Like...(android & java)

means I exactly require \"and\" symbol in textView

If I\'m pro

8条回答
  •  [愿得一人]
    2020-12-24 12:38

    The layout files are just xml and the & symbol is not allowed by itself.

    You will need to use & instead of &

    This will work fine

      Contests & Giveaways
    

提交回复
热议问题