aboutsummaryrefslogtreecommitdiff
path: root/views/TextLinkify/textLinkify.jd
blob: ca39b7b2b5c6202501cec32e9ca397dabf01cd3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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>