Friday, 9 August 2013

java Android - how can I make WebView transparent for android 2.x?

java Android - how can I make WebView transparent for android 2.x?

I need a WebView to be transparent, but can't find solution
I've found only
webView.setBackgroundColor(0x00000000);
webView.setLayerType(WebView.LAYER_TYPE_SOFTWARE, null);
, but this is only for Honeycomb and older and I need my App to work on
2.x also. None of the solutions I've found on stackoverflow are working-
webView is still white.
Can anyone tell me what's working for sure for pre-Honeycomb versions?
maybe I should change something in html as well?

No comments:

Post a Comment