简体   繁体   中英

Android: Text formatting in paragraphs

I have text which is in xml and its a long text divided into several paragraphs. How shall I store this text in db and then retrieve it so that I get the text in the paragraphs form?

"Heading\n\n\tThis is the first paragraph and you can see the second paragraph below.\n\n\tThis is the second"

Store like this. Use \\n\\n\\t before starting each paragraph. \\n is for new line and \\t for tab.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM