Linkify textView and make text selectable

I have a textView and I want to make the text clickable (urls and phone numbers)

I have successfully been using Linkify ex

Linkify.addLinks(tvDescription, Linkify.ALL);

Now I would like to make the text selectable using

tvDescription.setTextIsSelectable(true);

It does also work as long as I dont Linkify my textView.

If I use both lines of code

tvDescription.setTextIsSelectable(true);
Linkify.addLinks(tvDescription, Linkify.ALL);

the text will by linkifyed but the text wont be selectable.

I have been trying

tvDescription.setAutoLinkMask(Linkify.ALL);

but this does not seem to work at all.

How can I linkify my textView as well as make my text selectable?

Thanks for any response

链接地址: http://www.djcxy.com/p/74630.html

上一篇: TextView是链接和可选?

下一篇: 链接textView并使文本可选