问题
After using
Linkify.addLinks(content, pattern_glos, scheme_glos, null, glosFilter);
logs write
11-22 21:19:15.319: W/TextView(14718): TextView does not support text selection.
Action mode cancelled.
And text is not selectable. I need both and links and selectable.
回答1:
To make links in a TextView
clickable, you need to call textView.setLinksClickable(true);
and textView.setMovementMethod(LinkMovementMethod.getInstance());
来源:https://stackoverflow.com/questions/8231172/linkify-textisselectable