handle textview link click in my android app

前端 未结 12 906
迷失自我
迷失自我 2020-11-22 04:33

I\'m currently rendering HTML input in a TextView like so:

tv.setText(Html.fromHtml(\"test\"));

The HTML b

12条回答
  •  既然无缘
    2020-11-22 04:54

    its very simple add this line to your code:

    tv.setMovementMethod(LinkMovementMethod.getInstance());
    

提交回复
热议问题