I have a multi-line TextView
and I want to get the bounded rectangle of a particular word in that TextView
. I have ClickableSpan Text in TextView
, so when user clicks on a word, I want to show him/her a small window above that word. But to achieve this I must know the location of that word in that TextView or in that Windows.
Till now I can detect the exact word user has clicked. Any help would be appreciated. :)
P.S: Of course I can get the bounding rectangle of TextView
as a whole but I want it at character/word level or AT LEAST LINE LEVEL.