我試圖在Android中創建可點擊的文本瀏覽器,但沒有成功,在佈局android中我有正確的輸出但不能鏈接。Android中的可點擊TextView
這就是我現在所擁有的:
<TextView
android:id="@+id/textTitle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:autoLink="web"
android:clickable="true"
android:textSize="16sp"
android:textStyle="bold" />
textTitle.setText(Html.fromHtml(response.toString()));
textTitle.setMovementMethod(LinkMovementMethod.getInstance());
在
Log.i("myApp1", response.toString());
我已經
<a href=http://...>MyLink</a>
問題是什麼?什麼錯誤出現,如果有的話? –
我在佈局android中沒有錯誤...我有文本標題不可點擊... – comex
@comex您點擊時想要什麼?改變其風格? –