有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java如何使段落标记中的锚标记可点击?

下面是我的绳子

String txtLink = "<p>Apply directly in our <a 
href=\"https://theorem.applytojob.com/apply/TyJy6YCsOs/Experienced- 
Backend-Engineer-Ruby?source=GitHub+Jobs\">careers page</a></p>";

我需要在安卓系统中点击锚定标签。到目前为止,我所尝试的是

txtJobLink.setText(""+Html.fromHtml(txtLink));
txtJobLink.setMovementMethod(BetterLinkMovementMethod.newInstance());
BetterLinkMovementMethod.linkify(Linkify.ALL,txtJobLink);
BetterLinkMovementMethod.linkifyHtml(txtJobLink);
txtJobLink.setLinksClickable(true);

共 (0) 个答案