Java tutorial
//package com.java2s; //License from project: Open Source License import android.webkit.WebView; public class Main { static void loadCSS(WebView view, String css) { // Inject CSS string to the HEAD of the webpage view.loadUrl( "javascript:(function()%7Bvar%20styles%3Ddocument.createElement('style')%3Bstyles.innerHTML%3D'" + css + "'%2Cstyles.onload%3Dandroid.loadingCompleted()%2Cdocument.getElementsByTagName('head')%5B0%5D.appendChild(styles)%7D)()"); } }