I have the following TextView defined :
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/txtCredits" android:autoLink="web" android:id="@+id/infoTxtCredits" android:layout_centerInParent="true" android:linksClickable="true"></TextView>
@string/txtCredits 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.can someone tell me what i'm doing wrong?do i have to set an onClickListener for the TextView in my activity for something as simple as this?
Looks like it has to do with the way i define my string resource.this does not work :
<string name="txtCredits"><a href="http://www.google.com">Google</a></string>
But this does :
Which is a bummer because i would much rather show a text link than show the full URL.