2013-03-08 83 views

回答

1

這應該工作

webView.setBackgroundColor(0); 
webView.setBackgroundResource(R.drawable.test2); 
+0

webView.setBackgroundColor代替(0);這是什麼意思? – Mohit 2013-03-08 06:14:21

+0

它的工作,但它顯示錯誤頁面和我的形象。任何想法不要顯示默認頁面?順便說一句,你可以將它添加到你的答案 – Mohit 2013-03-08 06:19:05

+0

'webView.setBackgroundColor(0);'這會將backgroundColor設置爲透明,它與0x00000000相同。您需要在'onReceivedError()'方法中重置/清除webview以查看背景圖像 – Naveen 2013-03-08 07:49:50

相關問題