android:linksClickable - Make Link Unclickable in a TextView/EditText

How to Make Link Unclickable in a TextView/EditText

android:linksClickable was added in API Level 1.

If set to false, keeps the movement method from being set to the link movement method even if autoLink causes links to be found.

The link will look like a link, underlined, colored, but it will not be clickable. Unclickable meaning it will not launch the associated program, i.e. browser, phone, email app.


1. Add TextView in your main.xml file.

2. In the main.xml file, add the code below.

   <TextView
                ....
android:text = "http://www.google.com"
                android:linksClickable = "false"
android:autoLink = "web"
      />