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

后端 未结 8 527
半阙折子戏
半阙折子戏 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:33

    Simply write it with amp followed by semi-colon as below:

    android:text="Bakeries & Dessert"
    

提交回复
热议问题