【发布时间】:2011-06-27 13:15:03
【问题描述】:
我正在努力创建一个具有透明背景的 WebView。
webView.setBackgroundColor(0x00FFFFFF);
webView.setBackgroundDrawable(myDrawable);
然后我用
加载一个html页面<body style="background-color:transparent;" ...
WebView 的背景颜色是透明的,但一旦加载页面,它就会被 html 页面中的黑色背景覆盖。这只发生在 android 2.2 上,它适用于 android 2.1。
那么在 html 页面代码中是否需要添加一些内容以使其真正透明?
【问题讨论】:
-
很抱歉,但对于我的问题,这里没有列出任何解决方案... :=( 无论如何谢谢...网页总是使用白色背景...
标签: android background webview transparency transparent