Issue
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?
Solution
use a blackslash not a forwardslash. \n
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="title">Hello\nWorld!</string>
</resources>
Also, if you plan on using the string as HTML, you can use <br /> for a line break(<br />)
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="title">Hello<br />World!</string>
</resources>
Answered By - james
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.