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

Closed
winsonet opened this issue Jan 30, 2019 · 6 comments
Closed

Can I set the InAppWebview background to transparent? #41

winsonet opened this issue Jan 30, 2019 · 6 comments
Labels

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

Copy link

github-actions bot commented Oct 8, 2024

This issue is stale and has been automatically closed because it has been open for more than 365 days with no activity. Please reopen a new issue if you still have it.

@github-actions github-actions bot added the stale label Oct 8, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 8, 2024
@bhanubbs
Copy link

bhanubbs commented Oct 8, 2024

initialOptions is Deprecated

Use:
initialSettings: InAppWebViewSettings(
transparentBackground: true,
),

Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants