I have simple task: to display in TextView
some HTML code.
The implementation is:
<TextView
android:id="@+id/subtitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="#808080"
android:textSize="16.5dip"
android:lineSpacingExtra="4dip"/>
And the code:
mSubtitle.setText(Html.fromHtml(mData.answer));
Here is example of the mData.answer
:
Some text <a href="url1">link1</a>, some text <a href="url2">link2</a>, etc
I suppose this is not so heavy code to display in the TextView
. And it works, but links in my TextView
are not clickable. How to enable this feature?