On Thu, Aug 19, 2010 at 7:02 PM, Sergey <[email protected]> wrote:
>> Create one TextView per word.
> This wouldn't work for me as the text is very large and also it would
> create many other problems in my processing.
>
> Are there any other options?

Override onTouchEvent(), find the coordinates of the screen tap, then
run a bunch of text metric calculations to try to determine what word
is at those coordinates. This is unlikely to be easy.

I'm not strong enough with my DOM events to know if you could find out
the clicked-upon word if you put the text into a WebView instead of a
TextView.

Bear in mind that your current design assumes the existence of a
touchscreen. It remains to be seen how long that assumption will hold
true. Google TV, for example, might be more pointer-centric.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.1 Available!

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