How to put space character into a string name in XML?

后端 未结 14 2112
谎友^
谎友^ 2020-12-12 13:31

i have defined some strings in the strings.xml file. Now I need to put some extra space between some numbers in the string. When I type extra space characters t

14条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-12 14:01

    Android doesn't support keeping the spaces at the end of the string in String.xml file so if you want space after string you need to use this unicode in between the words.

    \u0020

    It is a unicode space character.

提交回复
热议问题