When I paste a text in an edit text, it is displayed well in the edittext that is set to multiline and wrap text.
Then I save this to mysql database, when I display the text again it does not wrap on the label because the text is treated like one row character set .
Where is the problem ? when storing the text into database or it is just the way it goes, the pasted text does not keep formating ?
My idea to fix this is:
- test in edit text_changed the new and old values , when diference between the length is greater than 1 then the text is pasted from another source
- then modify the text and insert a <cr> by measuring the text width or by fixed width
Thanks
Then I save this to mysql database, when I display the text again it does not wrap on the label because the text is treated like one row character set .
Where is the problem ? when storing the text into database or it is just the way it goes, the pasted text does not keep formating ?
My idea to fix this is:
- test in edit text_changed the new and old values , when diference between the length is greater than 1 then the text is pasted from another source
- then modify the text and insert a <cr> by measuring the text width or by fixed width
Thanks