由於某些原因,我使textviews可點擊並將自動鏈接設置爲網頁後,它仍然無法打開瀏覽器。我是否需要使用事件偵聽器,然後如此處理?或者我忽略了一些簡單的東西?我會通過張貼TextView的XML代碼開始:小部件textview中的可點擊超鏈接
<TextView
android:id="@+id/textView6"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.11"
android:autoLink="web"
android:background="@drawable/back"
android:clickable="true"
android:gravity="center"
android:text="Large Text"
android:textAppearance="?android:attr/textAppearanceLarge" />
http://android-developers.blogspot.in/2008/03/linkify-your-text.html。檢查鏈接 – Raghunandan
不幸的是,小部件必須使用相當有限的remoteViews。它不能使用findViewByID –
你可以嘗試點擊跨度。不知道它會適用於您的要求 – Raghunandan