Im working on an epub reader for android platform. Not me started the project i just continue it so i have tons of code to get in to it.
My question is simple:
Is there a way in android to apply javascript to my html content inside my webView ?
I would like to make the html’s font-size smaller or bigger by clicking a button for example… So users could modify font-size inside the webView.
Is there a way to achiev this ?
Any suggestions will be appreciated!
Thanks,
Given a
WebViewobject namedwv, execute:where the
...is the source code of the JavaScript to execute inside the context of the presently-displayed Web page. This is the same syntax used by bookmarklets in desktop browsers.Note that you will also need to enable JavaScript in the first place, as described in nicholas.hauschild’s answer.