I want to apply Custom CSS into external webpage in WebView just like follow
webView.loadUrl("<style>body {font-size:15px;}</style>");
webView.loadUrl("http://www.stackoverflow.com");
I want to apply Custom CSS into external webpage in WebView just like follow
webView.loadUrl("<style>body {font-size:15px;}</style>");
webView.loadUrl("http://www.stackoverflow.com");
You can inject custom JS by using the
javascript:
URL capability.Here's how you can add CSS rules using this from Java:
And here's an usage example of the above method: