Finding the coordinates of a letter placed on TextView

Viewed 2158

I have a textview which contains longs text that covers half of the screen,

In this textview I have two words at different position above which I have to place a blank layout which will give it a glass effect.

I can do this by placing the textview in a framelayout and placing the layout above it.

The problem is how will I get the coordinates of the words, as the text may be arranged at different position on different devices.

enter image description here

I want to place a layout at the place marked white. Can some one please help Thanks.

3 Answers
Related