Android TextView文字空格
 表示全角空格,
<string name="aaa">你好      啊</string>
1.Even if you use string formatting sometimes you still need whitespaces at the beginning or the end. On these cases neither escaping with \ nor xml:space attribute helpes. You must use xml encoding  
for whitespaces.
2.I found a solution on this issue report : http://code.google.com/p/android-apktool/issues/detail?id=14
This is the same idea that Duessi suggests. Insert \u0020
directly in the XML for a blank you would like to preserve.
Example :
<string name="your_id">Score :\u0020</string>
The replacement is done at build time, therefore it will not affect the performance of your game.
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。