I want to make a TextView with a link. I made it with combination of html and bit of java:
// used to enable link navigation on TextView
setMovementMethod(LinkMovementMethod.getInstance())
// TextView with link
<TextView
android:id="@+id/textView5"
android:layout_width="wrap_content"
android:layout_height="19dp"
android:layout_marginTop="8dp"
android:gravity="center"
android:linksClickable="true"
android:text="@string/link"/>
// @string/link
<string name="link">Test <a href="#">link</a></string>
However there is still one issue, the space before actual link text is underlined like this:
Why is that and how could it be fixed?