I have a WebView and I would like my application to detect a label in the text (I use the βΊ symbol in html). I have many html files, each of which contains almost 10 such marks.
I pretty easily did this with a TextView:
int offset=texto.indexOf("SPECIFIC MARKING ON TEXT"); final int line = textview.getLayout().getLineForOffset(offset); final int y = textview.getLayout().getLineTop(line);
But how to do it in Webview? The reason I use Webview is due to better text formatting.
source share