I have a very simple string resource defined as:

<string name="txtCredits">Search using <a href="http://
www.google.com">Google</a></string>

And I have a very simple TextView that displays the string.

        <TextView android:layout_width="wrap_content"
                android:layout_height="wrap_content" android:text="@string/
txtCredits"
                android:autoLink="web" android:id="@+id/infoTxtCredits"
                android:linksClickable="true"></TextView>

I want the user to be able to click on a link in the TextView and have
it opened in the browser (not in my application).  The links in my
text view look clickable, but they are not.  They do not respond to
any user action.

But if I change my string to:

<string name="txtCredits">www.google.com</string>

The link is highlighted and the user can click on it and the browser
opens.

I don't want my link text to be "www.google.com", I want the link text
to be the word "Google."

What am I doing incorrectly?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to