views:

43

answers:

1

I have an application that shows a textview occupying most of the screen. When the user clicks on a portion of the textview I want to find the closest character to where they clicked so I can show them information about that part of the text in detail. I have the OnTouchListener and I can get the x,y of the click but does anyone have any idea how I can use that to get the closest character in the textview?

Thanks, Jeff