I think you might have to call setMovementMethod() on your textview.

See:

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/text/Link.html

On Oct 11, 11:09 am, Marco Rocco <[email protected]> wrote:
> I would make a textview linkable, and i have tried with this code:
>
> [...]
> TextView textview;
> for (int i = 0; i < 5; i++) {
>         textview = new TextView(this);
>         htmlString = "<a href='http://www.google.com'>Try Me</a>";
>         textview.setText(Html.fromHtml(htmlString));
>         Linkify.addLinks(textview, Linkify.WEB_URLS);
>         lx.addView(textview, layoutParams);}
>
> [...]
>
> but when i click on a textview nothing happens!
>
> Anyone can help me?

-- 
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