I would like display for example this html code:
Hello World
This is a test of the URL &
The best way to add html source code in strings.xml is to use . Here is an example:
Text]]>
Then you can display this html in TextView using:
myTextView.setText(Html.fromHtml(getString(R.string.html)));
If you have links in your html and you want them to be clickable, use this method:
myTextView.setMovementMethod(LinkMovementMethod.getInstance());