我正在努力创建具有透明背景的WebView。
webView.setBackgroundColor(0x00FFFFFF);
webView.setBackgroundDrawable(myDrawable);
然后我加载一个html页面
<body style="background-color:transparent;" ...
WebView的背景颜色是透明的,但是一旦加载页面,它就会被html页面中的黑色背景覆盖。这仅发生在android 2.2上,它适用于android 2.1。
那么,在html页面代码中是否要添加一些内容以使其真正透明?
慕仙森
UYOU
相关分类