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");
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");
转载于:https://www.cnblogs.com/zhou1989/archive/2012/07/16/2593560.html