How to create TextView that will act as a link

后端 未结 4 743
长情又很酷
长情又很酷 2020-12-30 17:41

I have a Textview with location:

eg. \"Mountain View, CA\"

What I want to achieve is to create this text to act like a Link - color,underline, f

4条回答
  •  别那么骄傲
    2020-12-30 18:18

    tv.setMovementMethod(LinkMovementMethod.getInstance());

    if you are not getting click callback

提交回复
热议问题