将WebView的背景设置成透明的方法

将WebView的背景设置成透明的方法,使用语句setBackgroundColor(0);

WebView web = (WebView) findViewById(R.id.web); 

web .setBackgroundColor(0); 

web .setBackgroundResource(R.drawable.yourImage); 

web.loadData(profile, "text/html" ,"UTF-8");



本文地址:http://www.getideas.cn/?p=201 , 转载请保留.

 

你可能感兴趣的:(html,Web)