chromium-aw icon indicating copy to clipboard operation
chromium-aw copied to clipboard

Transparent Background

Open maxiannunziata opened this issue 1 year ago • 0 comments

Hi guys,

I am trying with no luck to create webview with transparent background.


  webView = WebView(this)
        webView.settings.mediaPlaybackRequiresUserGesture=false

      webViewContainer.addView(
            webView,
            ViewGroup.LayoutParams(1200, ViewGroup.LayoutParams.MATCH_PARENT)
        )
        webView.settings.useWideViewPort=true

        webView.settings.loadWithOverviewMode=true
        webView.setBackgroundColor(Color.TRANSPARENT)

But the WEBVIEW don't change the color

In my HTML the body is configured to be transparent:

<body background-color="transparent" style="background-color:transparent;">

but don´t work.

Please help me 💯

maxiannunziata avatar May 28 '23 00:05 maxiannunziata