Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Transparent Background #21

Open
maxiannunziata opened this issue May 28, 2023 · 0 comments
Open

Transparent Background #21

maxiannunziata opened this issue May 28, 2023 · 0 comments

Comments

@maxiannunziata
Copy link

maxiannunziata commented May 28, 2023

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 💯

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant