There's a method for altering background color but not font.
Any ideas?
something like
String text = "<html><head>" + "<style type=\"text/css\">body{color: #fff; background-color: #000;}" + "</style></head>" + "<body>" + your_string_text_here + "</body></html>"; webview1.loadData(text, "text/html", "utf-8");
I had to put it in the onPageFinished method.
_webView.setWebViewClient(new WebViewClient() { public void onPageFinished(WebView view, String url) { _webView.loadUrl( "javascript:document.body.style.setProperty(\"color\", \"white\");" ); } });
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With