I am looking for a piece of code which is able to get a transparent background in a WebView
for version 4.0 and above. My code is working fine with version 2.3
If webview is scrolable:
Add this to the Manifest:
android:hardwareAccelerated="false"
OR
Add the following to WebView in the layout:
android:background="@android:color/transparent" android:layerType="software"
Add the following to the parents scroll view:
android:layerType="software"
Try this:
webView.setBackgroundColor(0x00000000);
and remove android:hardwareAccelerated ="true"
as that is off-topic.
setBackgroundColor(0x00000000); will make your webview transparent