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

相關文章
相關標籤/搜索