Search code examples
androidepub

How to highlight epub text in android


From reading some Q&As on stackoverflow, I understand that webview might be a good option to display epub files.

In the following thread, it mentioned you can highlight in webview too. render the epub book in android?

Can anybody guide me as to how we can highlight some text in web view? There's a similar question asked about 2 months ago in the following thread but has not received an answer yet. https://stackoverflow.com/questions/12948352/highlight-unhighlight-some-text-permanently-in-epub-file-in-android

Please help me to figure out how I can implement highlight functionality for epub readers in android. Thank you.


Solution

  •          webview.findAll(htmlTextStr);
             webview.setSelected(true);
             webview.findNext(true);
    

    Try this , htmlTextStr must be your text that is to be highlighted