I have to display some long text on a TextView, i tried to put it on strings.xml variable but had that problem Apostrophe not preceded by \. I used Java code to set the TextView but all the text must be on one line, and i want that the compiler detects return to line.
My question what is the best approach to make that ?
Thanks for helping.
Use
mTextSample.setText(Html.fromHtml(text));Where you can show anything in your TextView using Html.fromHtml().Example (Some uses):
.
And some uses :
Android Html.fromHtml takes too long
Display HTML Formatted String
Happy coding 🙂