我在TextView中有一些带有链接的文本。现在我想让浏览器打开链接,如果用户点击它。我的TextView看起来是这样的:显示正确点击TextView中的链接
<string name="Info">Go to <a href="www.google.com">Google</a></string>
<TextView
android:id="@+id/Info"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/OptionMarginBottom"
android:autoLink="web"
android:linksClickable="true"
android:text="@string/Info" />
中的链接,蓝色,但我不能点击它。这是为什么?
作品很好谢谢你!但是我必须从TextView中删除'LinksClickable'和'AutoLink'。 – Cilenco