There\'s a method for altering background color but not font.
Any ideas?
You can concatenate your answer one body tag HTML with CSS style hex color, this is an example using a JSON response
First: function for decode JSON to HTML format
public String stripHtml(String html) {
return Html.fromHtml(html).toString();
}
Second: Load data in WebView (no url)
String string_html;
string_html = "<body style="color:#535362;">" + youStringHTML + "</body>";
webView.loadDataWithBaseURL(null, stripHtml(string_html), "text/html", "utf-8", null);
@rafraph's answer didn't work for me. I had to use
webView.loadUrl("javascript:document.body.style.setProperty(\"color\", \"white\");");