I have the following TextView defined:
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autoLink="web"
android:linksClickable="true"
android:id="@+id/googleplayservices"
android:layout_marginLeft="40dp"
android:layout_marginRight="15dp"
android:fontFamily="@font/inter_medium"
android:paddingTop="@dimen/_5sdp"
android:text="@string/Google_Play_Services"
android:textColor="@color/black"
android:textSize="@dimen/_12sdp" />
where @string/Google_Play_Services
is a string resource that contains <a href="some site">Link text</a>
.
Android is highlighting the links in the TextView, but they do not respond to clicks. What am I doing wrong? Do I have to set an onClickListener for the TextView in my activity for something as simple as this?