Thanks very much for your reply!  I think I will do something like
having each word be a link, it seems the most plausible idea.

On Oct 2, 3:36 pm, Jason Proctor <[email protected]>
wrote:
> the easy way to do this is to have each word be a link -- you can
> style it so that it doesn't look like it -- and then have a custom
> WebViewClient handle the link and do whatever you want.
>
> another way would be to have javascript pick up the touch and somehow
> determine which part of the DOM was in that position. offhand i don't
> know how viable this is.
>
>
>
> >I was wondering whether there was a way, if you have a webview with
> >some html being displayed in it, to obtain which part of the html is
> >touched by the user.  For example, say I have a webview that's
> >displaying, in just plain text (no links), the following:
>
> >The quick brown
> >fox jumped over
> >the lazy dogs.
>
> >If the user touches the word "lazy", can I somehow obtain information
> >that he has touched that particular word?  Perhaps there is something
> >in the WebView or WebViewClient classes that maps sections in the html
> >data to x, y coordinates?
>
> >I'm not at all sure this is possible, but if anyone can point me in
> >the direction of any apps, code examples, or implementations that do
> >something like this, that would be awesome.  Thanks!
>
> >-Zack
>
> --
> jason.vp.engineering.particle
--~--~---------~--~----~------------~-------~--~----~
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