包含和不包含<a> tag

时间:2017-05-01 21:22:40

标签: android html textview

I am trying to make these links text clickable in TexView.

String s = "<a href=\"https://google.com\">google</a> https://google.com";
textview.setText(Html.fromHtml(s));

I could not make both clickable at the same time.

This makes <a> tag clickable

textview.setMovementMethod(LinkMovementMethod.getInstance());

This makes web link clickable

textview.setAutoLinkMask(Linkify.ALL);

1 个答案:

答案 0 :(得分:1)

TRUNC( create_date )
相关问题