Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用后
Linkify.addLinks(content, pattern_glos, scheme_glos, null, glosFilter);
日志写
11-22 21:19:15.319: W/TextView(14718): TextView does not support text selection. Action mode cancelled.
并且文本是不可选择的。我需要和链接和可选择的。
要使链接成为TextView可点击的,您需要调用textView.setLinksClickable(true);和textView.setMovementMethod(LinkMovementMethod.getInstance());
TextView
textView.setLinksClickable(true);
textView.setMovementMethod(LinkMovementMethod.getInstance());