Android --- android: autoLink attributes

Source: Internet
Author: User

URL link email link


TextView supports two methods to identify links. One is to automatically identify links and HTML resolution links.


Automatic link identification:

<! -- Android: autoLink = "web"-sets the automatic identification link, and the value web is the matching Web URL -->

<! -- Android: autoLink = "phone"-sets the automatic identification link. The phone value is the matching phone number. -->

<! -- Android: autoLink = "email"-sets the automatic identification link. The email value is the matching Email address. -->

<! -- Android: autoLink = "all"-sets the automatic identification link, and the value "all" matches all -->

Example:

<TextView
Android: layout_width = "fill_parent"
Android: layout_height = "wrap_content"
Android: autoLink = "all"
Android: text ="
Android: textSize = "16dp"/>

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.