Use special symbol (<, >) in layout design in Android

后端 未结 4 1905
眼角桃花
眼角桃花 2021-02-09 03:27

I need two navigation buttons with their texts are < and >. However, the compiler doesn\'t allow me use those symbols, even if I use \\<

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-09 04:12

    Declare this in string.xml and use:

    Synonyms & Antonyms
    

    And simply call this in:

    
    

    Use < for <

    Use > for >

提交回复
热议问题