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

后端 未结 14 2127
谎友^
谎友^ 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 13:48

    xml:space="preserve"

    Works like a charm.

    Edit: Wrong. Actually, it only works when the content is comprised of white spaces only.

    Link

提交回复
热议问题