title: How to make links in a TextView clickable
body: <p>I have the following TextView defined:</p>
  <pre><code>&lt;TextView 
      android:layout_width=&quot;wrap_content&quot;
      android:layout_height=&quot;wrap_content&quot; android:text=&quot;@string/txtCredits&quot;
      android:autoLink=&quot;web&quot; android:id=&quot;@+id/infoTxtCredits&quot;
      android:layout_centerInParent=&quot;true&quot;
      android:linksClickable=&quot;true&quot;/&gt;
  </code></pre>
  <p>where <code>@string/txtCredits</code> is a string resource that contains <code>&lt;a href=&quot;some site&quot;&gt;Link text&lt;/a&gt;</code>.</p>
  <p>Android is highlighting the links in the TextView, but they do not respond to clicks. What am I doing wrong?  Do I have to set an onClickListener for the TextView in my activity for something as simple as this?</p>
  <p>It looks like it has to do with the way I define my string resource.</p>
  <p>This does not work:</p>
  <pre><code>&lt;string name=&quot;txtCredits&quot;&gt;&lt;a href=&quot;http://www.google.com&quot;&gt;Google&lt;/a&gt;&lt;/string&gt;
  </code></pre>
  <p>But this does:</p>
  <pre><code>&lt;string name=&quot;txtCredits&quot;&gt;www.google.com&lt;/string&gt;
  </code></pre>
  <p>Which is a bummer because I would much rather show a text link than show the full URL.</p>