由网友(人潮那么挤,心却那么空)分享简介:它似乎并不像它可以将新行/ N添加到XML资源字符串。是否有这样做的另一种方式?It doesn't seem like it's possible to add a new line "/n" to an XML resource string. Is there another way of doing this...
它似乎并不像它可以将新行/ N添加到XML资源字符串。是否有这样做的另一种方式?
It doesn't seem like it's possible to add a new line "/n" to an XML resource string. Is there another way of doing this?
感谢
推荐答案
使用blackslash不是forwardslash。 N
use a blackslash not a forwardslash. "n"
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="title">HellonWorld!</string>
</resources>
另外,如果你打算使用的字符串作为HTML,您可以使用&放大器; LT; BR /&放大器; GT;
作为换行符(&LT; BR /&GT;
)
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="title">Hello<br />World!</string>
</resources>
相关推荐
最新文章