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