TextView中的超链接的text只能是网址.我现在有这样的需求,比如文字是google,然后点击就跳到google主页.我把text设置成<a href=''>google</a>发现google是web那种超链接的样式,但无法点击.想请教一下大家好有没有其他的方式解决,谢谢!
解决方案 »
- 做了一个地图的demo,报了Caused by: java.lang.ClassNotFoundException,大家帮我看看哪里错了
- error: Error retrieving parent for item: No resource found that matches the give
- mmc代码的疑惑,mmc_wait_for_cmd函数
- android
- [求助]GridView载入过慢问题
- DishInfo在哪个包?
- 维语输入法有没有 andiroid 版的
- ActionBar移动到界面底部
- 使用 NDK android.mk ,LOCAL_LDLIBS 找不到库,怎么解决??
- 菜鸟想请教安卓新语言
- 如何开个新线程
- 数据上网 和 wifi 的区别
<TextView android:autoLink="web"
直接textView.setText("http://www.google.cn/");
不过你得加上一句:
textView.setMovementMethod(LinkMovementMethod.getInstance());
然后在的xml中加上一句:
android;autoLink = "all"
就应该没有问题了
http://orgcent.com/android-textview-no-underline-hyperlink/