2012-01-27 37 views
1

我在我的应用程序和文本描述中有CheckBox有四个单词,我需要使最后两个单词成为链接,当点击最后两个单词时打开一些URL。这个怎么做 ?如何让复选框文本中的单词成为链接

+0

[这](http://stackoverflow.com/a/8185590/1671626)是确切的回答你的问题 – arianoo 2013-05-28 15:54:38

+0

的可能重复[我怎样做一个复选框的文本可点击的部分?( http://stackoverflow.com/questions/8184597/how-do-i-make-a-portion-of-a-checkboxs-text-clickable) – haraldK 2016-01-19 09:35:15

回答

0

你好我不知道任何其他方式,但我高调使用按钮,并设置最后两个字作为按钮文本和点击监听器设置网址并打开它。

2

checkbox.setMovementMethod(LinkMovementMethod.getInstance());

<string name="order_terms_and_condtions">text... <a href="link">Terms and conditions</a> ...text</string> 
相关问题