title: Setting webview background image to a resource graphic in Android
body: <p>I'm trying to set the background of a webview to a drawable image resource in Android.</p>
  
  <p>From the sdk it seems something like this would work but it doesn't.</p>
  
  <pre><code>WebView web = (WebView) findViewById(R.id.webView);
  
  web.setBackgroundResource(R.drawable.backgroundmain);
  web.loadData(profile, "text/html", "UTF-8");
  </code></pre>
  
  <p>Any idea's?</p>