clickable word inside TextView in android

后端 未结 6 2052
谎友^
谎友^ 2020-12-04 19:36

I have TextView with text that changed dynamically. This text contain strings like myWord. I want that after click to this \"

6条回答
  •  死守一世寂寞
    2020-12-04 20:18

    My personal opinion would be to make a second textview containing the text that you want to be your link. Then you could do your action in the onClick of this second textView . Also as zzzzzzzzzzz stated above, you could choose to change the font properties of that text to whatever you want once it has been clicked.

提交回复
热议问题