Johan
Johan

Reputation: 51

Phone number in listview

I use a ListView for text-items in my APP. But I have one problem: if a put a text with numbers, the numbers are convert to a link to show the phone dial screen. Can I disable this?

Upvotes: 0

Views: 184

Answers (2)

Johan
Johan

Reputation: 51

It looks like this: enter image description here

I have a standard ListView with a Image and a TextView (thats one item).

Upvotes: 0

Squonk
Squonk

Reputation: 48871

If you are defining you list items as TextViews in a layout file then use android:autoLink="none" to prevent emails/urls/phone numbers etc from being shown as clickable links.

You should also be able to use setAutoLinkMask (0) on each individual TextView list item if you are creating/adding them manually.

I haven't tried it myself but I think that's how it works.

Upvotes: 1

Related Questions