Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I set the InAppWebview background to transparent? #41

Open
winsonet opened this issue Jan 30, 2019 · 3 comments
Open

Can I set the InAppWebview background to transparent? #41

winsonet opened this issue Jan 30, 2019 · 3 comments

Comments

@winsonet
Copy link

I just want to show the inline html content in my app, so I want to set the webview background to transparent, so that it can show my app's background with the html content.

thx~~

@dev-hussein
Copy link

dev-hussein commented May 9, 2019

@pichillilorenzo

Please add on prepare() InAppWebView java class

setBackgroundColor(Color.TRANSPARENT);
setLayerType(WebView.LAYER_TYPE_SOFTWARE, null);

So we can use webview with transparent background ...
thx ,,,

@rafaelmaeuer
Copy link

use:

crossPlatform: InAppWebViewOptions(transparentBackground: true)

@mkmpvtltd1
Copy link

use:

crossPlatform: InAppWebViewOptions(transparentBackground: true)

Yes it works

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

No branches or pull requests

4 participants