Rob
Rob

Reputation: 16002

Android : disable Text View links

I have a TextView containing a phone number, for example "01.40.56.55.20" (French number).

In this case, Android recognizes 1.40.56.55 as an IP address and links/underlines it.

How to remove this ?

Thanks a lot.

Upvotes: 2

Views: 2241

Answers (1)

karllindmark
karllindmark

Reputation: 6071

Set the following attribute to the TextView to render the digits as a phone number:

android:autoLink="phone"

Or just switch "phone" above to "none" to keep it plain.

Upvotes: 2

Related Questions