Is there a way to map characters to a pixel location in an EditText?
I assume that in the component of the word there is some knowledge anywhere in the pixel, because you can select the word for copy and paste operations.
In addition, most popular browsers and book readers have some kind of search function, where you can select a word and view it on the Internet or in the dictionary. How do these apps know the word that was pressed or selected?
I canβt come up with a good strategy to achieve this, other than re-writing the EditText and capturing all the entered text, as they are displayed in the onDraw() method.
I am sure there should be a much better strategy! Any ideas?
android android-edittext android-textview
Victor grazi
source share