想要显示多个空格在TextView中,但是发现只显示一个,谷歌了下说是最好使用 Unicode no-break space character (\u00A0)方式来替换常规的空格,果然有效,如下:
<string name="test">Hello\u00A0\u00A0\u00A0小蜜蜂</string>
or
<string name="test"><![CDATA[Hello\u00A0\u00A0\u00A0<small>小蜜蜂</small>]]></string>
or
<string name="test">Hello world</string>
or
new TextView("Hello\u00A0world");