pkdkk
pkdkk

Reputation: 3971

Cordova Embedding Webview transparent on native app

I followed the "Embedding Cordova WebView" guide to make cordova work with my native app, and thats works fine ...

But it could be nice if the cordova webview could be transparent as an overlay on my native app..

Anyone know if this is posible?..

Upvotes: 0

Views: 1116

Answers (1)

caiocpricci2
caiocpricci2

Reputation: 7798

Assuming everything is on the same layout behind the appview it's an easy thing to make the WebView transparent.

You can easily set the alpha of the appView variable:

appView.setAlpha(0.5f);

If everything is not in the same layout you need to provide more details on what exactly you're trying to achieve here.

Upvotes: 1

Related Questions