mogoweb / chromium_webview

Android WebView wrapper based on chromium
http://mogoweb.github.com
BSD 3-Clause "New" or "Revised" License
514 stars 160 forks source link

Fully Transparent WebView ? #22

Open lkcanal opened 9 years ago

lkcanal commented 9 years ago

Hello,

I'tried to get the webview transparent (did a html body with background-color: rgba(0,0,0,0); and still got a white color background. The idea is to mix a chromium webiview with others layouts below it to get an hybrid html/java application. I tried to set the SurfaceView transparent mSurfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT); and changed its backgroundColor to Color.TRANSPARENT in ContentViewRenderView class, but still got a blank background and my web site. Is there a way to get the background transparent ?

Thx.

mogoweb commented 9 years ago

Hi, KATIC:

In a project, we punch a hole in a WebView to let Video Surface shown, but I have no knowledge of how doing in Chromium.

2014-06-13 21:45 GMT+08:00 KATIC notifications@github.com:

Hello,

I'tried to get the webview transparent (did a html body with background-color: rgba(0,0,0,0); and still got a white color background. The idea is to mix a chromium webiview with others layouts below it to get an hybrid html/java application. I tried to set the SurfaceView transparent mSurfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT); and changed its backgroundColor to Color.TRANSPARENT in ContentViewRenderView class, but still got a blank background and my web site. Is there a way to get the background transparent ?

Thx.

— Reply to this email directly or view it on GitHub https://github.com/mogoweb/chromium_webview/issues/22.