Java tutorial
//package com.java2s; import android.graphics.Color; import android.webkit.WebView; public class Main { /** * Set a transparent background to a WebView * * @param webView the WebView with a default background */ public static void setWebViewTransparentBackground(WebView webView) { if (android.os.Build.VERSION.SDK_INT < 16) { webView.setBackgroundColor(0x00000000); } else { webView.setBackgroundColor(Color.argb(1, 0, 0, 0)); } } }