android xml中的空格

 常用的XML转义字符记录如下:

 

         空格: <string name="out_bound_submit">出&#160;&#160;库</string> 其中的&#160;就代表空格

 

       换行: <string name="hello_world">你好!\n世界!</string> 其中的\n就代表换行

 

       缩进: <string name="hello_world">你好!\t世界!</string> 其中的\t就代表按一次Tab键的几个空格

            应当注意,由于系统定义的基本的缩进的格数不同,有的代表4个半角字符,有的代表8个半角字符,

猜你喜欢

转载自blog.csdn.net/wxzjn1027/article/details/80911415