Hello,
I need to process words on which user clicked (touched) in the
TextView. But there seems to be no way to figure out which word was
clicked.
TextView.getSelectionStart() always returns 0 even if I use
setMovementMethod(ScrollingMovementMethod.getInstance());

I have also tried EditText, but it pops up the on-screen keyboard
every time user clicks the text. And I don't want the text to be
editable anyway, and the cursor should not be visible.

Also I have tried to use setInputMethod() to use my own InputMethod
class that overrides onTouchEvent() to get the coordinates of the
click point. But than there is no way to convert the coordinates to
character position in the text.

Is there any other way?
Any advice is greatly appreciated.
Thanks a lot,
--Sergey

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