I want to make a TextView with a link. I made it with combination of html and bit of java:
// used to enable link navigation on TextView
setMovementMethod(Li
// @string/link
<string name="link1">Test <a href="#">link</a></string>
You can use the white space in xml as string use  
. XML won't take white space as it is. it will trim the white space before setting it. So use  
instead of single white space.
Use CDATA
in string to use HTML
tags and use Html.fromHtml()
method to set the text.
Implementation below:
Set the text using Html.fromHtml()
in your Activity
class.
TextView textView = (TextView) findViewById(R.id.textView);
textView.setText(Html.fromHtml(getString(R.string.link)));
textView.setMovementMethod(LinkMovementMethod.getInstance());
In strings.xml
modify as below:
<string name="link">Test <![CDATA[<a href="#">link</a>]]></string>