How to add long text with many paragraphs in string.xml file in android
When I added a lot of paragraphs between
<string name="bbb"> ...... </string> he showed me the following error.
[2014-12-22 14:54:55 - Inspiration] Her father rescued her from the heartless husband and she was back her to the [2014-12-22 14:54:55 - Inspiration] G:\adt-bundle-windows-x86_64-20140702\workspace\Inspiration\res\layout\activity_women.xml:11: error: Error: No resource found that matches the given name (at 'text' with value '@string/Women1'). You can add a long line to /res/values/strings.xml as it seems you did.
You can separate paragraphs with \n .
You will need to use Unicode codes for special characters such as backslashes, etc. See this answer .
Yes, I was just about to add that in another answer: Another trick is to use the CDATA trick:
<![CDATA[Foo Bar <a href="foo?id=%s">baz</a> is cool]]> See more details.