android string.xml前后加空格的技巧

<string name="password">密&#160;&#160;&#160;&#160;码</string>
&#160 这个就代表着空格

 

空格是分为两种的,一种是可以中断的,另外一种是不可以中断的,
&#160这种空格是不可以中断的,&#032;是可以中断的
http://stackoverflow.com/questions/10862975/how-to-put-space-character-into-a-string-name-in-xml

posted @ 2015-06-26 23:10  牧之丨  阅读(676)  评论(0编辑  收藏  举报