How to keep the spaces at the end and/or at the beginning of a String in string.xml ?

在 strings.xml 中,写一个 string:ide

%1$s个故事 |
%1$s个粉丝 url

在代码中使用,运行到手机上时,显示的效果是这样的:spa

23个故事 |23个粉丝xml

"|"后面的空格丢了。get

解决方案:
urlstring

Score :\u0020 it

使用 \u0020 代替空格。io

相关文章
相关标签/搜索