title: How to add email link to layout xml, Android
body: <p>I have an xml file I use to show the About AlertDialog in my App.
  I was able to have an area of text from a text resource, and an image to the right of the text.
  Now I need to add the support email and possible home website address to the text. But I need it to be clickable. So clicking on the email will send an email and clicking on the website will open the browser.
  How do I add those linked text?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" android:weightSum="1" android:orientation="horizontal" android:baselineAligned="true"&gt;
      &lt;TextView android:text="@string/AboutString" android:layout_gravity="center_horizontal" android:id="@+id/textView1" android:layout_height="173dp" android:layout_width="wrap_content" android:textAppearance="?android:attr/textAppearanceMedium" android:drawableRight="@drawable/explain"&gt;&lt;/TextView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>EDIT: The solution I chose:</p>
  
  <pre><code>                View layout = inflater.inflate(R.layout.about, null);
                  Pattern p = Pattern.compile("somemail@domain.net");
                  String Scheme = "mailto:somemail@domain.net";
                  Linkify.addLinks((TextView)layout.findViewById(R.id.textView1), p, Scheme);
  </code></pre>