title: HTML Links in Android List View
body: <p>I have a custom listview in android, with each item consisting of several text views. One of the text views contains HTML text, some of which contains <code>&lt;a&gt;</code> tags. I am using the <code>HTML.fromHTML()</code> method to translate this into a <code>String</code> readable by the <code>textView</code>, but the links are not clickable. If I enable them to have focus, then the list items are no longer clickable and the links still do not work.</p>
  
  <p>So how do I make the links clickable, and keep the normal click functionality if a list item is clicked anywhere other than on a link?</p>
  
  <p>EDIT: My code:</p>
  
  <pre><code>    if (convertView == null) {
          LayoutInflater vi = (LayoutInflater) context
                  .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
          convertView = vi.inflate(R.layout.email_list_item, null);
      }
  
  
      TextView contentView = (TextView) convertView
              .findViewById(R.id.content);
  
      Email e = items.get(position);
  
      CharSequence content = "";
      if (e.getContent() != null) {
          content = Html.fromHtml(e.getContent());
      }
  
      contentView.setText(content);
      return convertView;
  </code></pre>