Can a TextView be selectable AND contain links?

后端 未结 8 663
长情又很酷
长情又很酷 2020-12-08 21:47

I\'ve run into a problem with TextView. I can make it selectable using setTextIsSelectable(true), but when I enable links to be clicked via s

8条回答
  •  有刺的猬
    2020-12-08 22:02

    LinkMovementMethod() does not support text selection very well, even we can select the text, but after we scroll the textview, the selection will be lost.

    The best implementation is extending from ArrowKeyMovementMethod, which supports the text selection very well.

    Please see the details in here

提交回复
热议问题