我有一个由一些 HTML 制成的TextView填充。Spannable
这段代码:
textView.setText(Html.fromHtml(textContent, mImageGetter, null));
显示链接,但它们不可点击。这段代码:
text.setMovementMethod(LinkMovementMethod.getInstance());
textView.setText(Html.fromHtml(textContent, mImageGetter, null));
不显示链接。在TextViewXML 中指定为
<TextView
    android:id="@+id/text"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@+id/another_textview"
    android:layout_marginTop="5dp"
    android:autoLink="web"
    android:textColorLink="@color/link_color_unpressed"
    android:textColor="#ffffff"
    android:textSize="18sp" />
为什么LinkMovementMethod,一种完全存在的TextView可点击链接的方法会阻止链接显示?