I’ve got a TextView displaying large text in my Android app. The text contains some phone numbers but also some other numbers. The TextView’s autoLink attribute is set to ALL.
At the moment every number that somehow looks like a phone number get’s automatically linked regardless whether it is a phone number or not.
So I wonder if there’s a way to exclude some of the numbers from auto linking within the same TextView?
Don’t use
autoLinkand instead useLinkifywith your ownMatchFilterandTransformFilter. You can probably look at the source code toLinkifyand look at how they are definingsPhoneNumberTransformFilterand create your own modified version.