I need to change the background color of the body tag in some Html that gets loaded into a webview. I have already tried the answer located here. Here is the relevant code I have in onPageFinished()
:
String command = "javascript:document.body.style.background = \"transparent\";";
webView.loadUrl(command);
My WebView just ends up ditching the old Html that was originally loaded and displays "transparent" instead of changing the color like I want.