Android App Development User Agreement (terms of Use) text word wrapping

Source: Internet
Author: User
User Agreement (Terms of use) word wrapping

Reprint Please specify source: http://blog.csdn.net/u012301841/article/details/46648821
When we develop the app, often in this module, it will involve the user agreement or the terms of use of this type of plain text interface, but need to wrap and drag. Normally, PM will give you a large piece of text, so you can handle it yourself. iOS can be copied directly into the text, it will be automatically wrapped, no processing, completely OK. Why not Android? We can only row to copy, to add line break \ r \ n such to deal with. Here is a good way to introduce you, mark.

Processing Tools notpad++

Copy the text you need to process to notpad++, changing the encoding format to UTF-8 without BOM format encoding.
In Click View – Show Symbol – tick to show line endings, show reference indents, show line breaks.
Then in Ctrl+f, click Replace, and the lookup mode changes to "regular expression".
Find target: ^\r\n
To be replaced by (P): \ r \ n
Click Replace All, OK, copy the finished text into the XML file, it's all right. Here is the map step.

Map step

The first step:

Step Two:

Step Three:

Fourth Step:

Android App Development User Agreement (terms of Use) text word wrapping

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.