I require the following function: I have a view completely filled by a single EditText. When a user hits on a spot in the text by using single tap touch, I want the program to extract the character at that position.
I get the coordinates of the touch easily using onTouchEvent, but I'm unable to figure out how to convert screen coordinates into position in the text. Is there an easy and efficient way of doing that? I considered implementing my conversion from pixel coordinates to text coordinates, but I'm not sure how to account for things like word wrap. The basic set up is more or less exactly like the notepad example, except I want to extract the character under touch. (This is useful to me for a language reader that looks up words on touch). Thank you! Artem -- 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

