android strings.xml转义字符收集

以下为XML标志符的数字和字符串转义符 
"     (" 或 ") 
'     (' 或 ') 
&     (& 或 &) 
lt(<) (&#60; 或 &lt;) 
gt(>) (&#62; 或 &gt;) 

空格 (&#160;)

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

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

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

猜你喜欢

转载自jonson.iteye.com/blog/2104420