blob: ca39b7b2b5c6202501cec32e9ca397dabf01cd3b [file] [log] [blame]
page.title=Linkify Sample
@jd:body
<p>This sample demonstrates how clickable links can be added to a
<a href="http://developer.android.com/reference/android/widget/TextView.html">TextView</a>.
This can be done automatically (see
<a href="http://developer.android.com/reference/android/widget/TextView.html#setAutoLinkMask(int)">
TextView#setAutoLinkMask(int)</a>), explicitly by parsing a String as
HTML (see
<a href="http://developer.android.com/reference/android/text/Html.html#fromHtml(java.lang.String)">
Html#fromHtml(String)</a>) or using a
<a href="http://developer.android.com/reference/android/text/SpannableString.html">SpannableString
</a> consisting of
<a href="http://developer.android.com/reference/android/text/style/StyleSpan.html">StyleSpan</a>
and <a href="http://developer.android.com/reference/android/text/style/URLSpan.html">URLSpan</a>
objects. </p>