Android handle HTML links and typed links in a TextView
<p>I am trying to handle both HTML and typed links in TextViews and I am unable to find a combination of the built in tools to do this. I can make one or the other work but not both.</p>

<p>Given the following formats</p>

<pre><code>http://google.com
&lt;a href="http://google.com/"&gt;Google!&lt;/a&gt;
</code></pre>

<p>Using .setMovementMethod(LinkMovementMethod.getInstance()) I can make the anchor tag turn into a link and open a webpage on click. Using .setAutoLinkMask(Linkify.ALL) I can make the typed link work as expected. The problem is setAutoLinkMask disables the setMovementMethod functionality and removes the highlighting it creates on the html link as well as its clicking functionality.</p>

<p>I tried searching for others with this issue and I believe I am being blocked by a lack of proper terms for this situation. Has anyone else come across a solution to handle both cases seamlessly?</p>

<p>This is what I have currently, only the typed link is linked in the TextView, the anchor just displays the text it wraps.</p>

<pre><code>mTextViewBio.setText(Html.fromHtml(htmlstring));
mTextViewBio.setAutoLinkMask(Linkify.ALL);
mTextViewBio.setMovementMethod(LinkMovementMethod.getInstance());
mTextViewBio.setLinksClickable(true);
</code></pre>

<p>TextView output:</p>

<p><a href="http://google.com" rel="nofollow">http://google.com</a><br />
Google!</p>
