Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you use a <code>TextView</code> to display the messages, you can use the attribute <a href="https://developer.android.com/reference/android/widget/TextView.html#attr_android:autoLink" rel="nofollow noreferrer"><code>autoLink</code></a> on the <code>TextView</code> element of the layout XML. This will automatically create links when street addresses, phone numbers and e-mail adresses are detected. You're less in control, but you get a lot for free!</p> <p>From the documentation:</p> <pre><code>android:autoLink Controls whether links such as urls and email addresses are automatically found and converted to clickable links. The default value is "none", disabling this feature. </code></pre> <p><strong>Update</strong></p> <p>If you want all supported types to be <code>autoLinked</code> you can use <code>android:autoLink="all"</code>. A concrete example to create auto links for <code>email</code>, <code>phone</code>, and <code>map</code> (separated by the <code>|</code> character):</p> <pre><code>&lt;TextView android:id="@+id/textView" android:layout_width="fill_parent" android:layout_height="wrap_content" android:autoLink="email|phone|map" &gt; &lt;/TextView&gt; </code></pre> <p>It is important to notice that the <code>autoLink</code> for <code>map</code> is not perfect. See <a href="https://stackoverflow.com/questions/2624649/autolink-for-map-not-working">here</a> and <a href="https://stackoverflow.com/questions/8767721/android-autolink-attribute-in-textview-behaving-strangely">here</a> for more details.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload