On Fri, Dec 7, 2012 at 6:25 AM, Mark Murphy <mmur...@commonsware.com> wrote:

> Use Html.fromHtml() on your input string before passing it to the
> TextView.
>

Thanks Mark, but that's pretty much what I'm doing, sorry if that wasn't
clear. So, as a simple example, if I have the following html string and set
it using fromHtml, only one link works:

String test = "<p>http://www.google.com</p><p><a href=\"
http://www.google.com\";>Google</a>";
textView.setText(*Html.fromHtml*(test));

With autoLink, the first one works, not the second. With
setMovementMenthod, the second one works, not the first. I can't get both
to work together, no matter what combination I try. I also played with the
linksClickable property and that doesn't help.

I tested on my device (api 10) and an emulator with the latest version (17)
and experience the same behavior.

Thanks.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

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

Reply via email to