title: How to get transparent background of webView for 4.0 version
body: <p>I am looking for a piece of code which is able to get a transparent background in a <code>WebView</code> for version 4.0 and above. My code is working fine with version 2.3 but it is getting a white background when I run it on version 4.0 and 4.2. I am providing my code which is working for version 2.3, but not in 4.0 and 4.2. Please help me. Thanks in advance...</p>
  
  <p><strong>In XML:</strong></p>
  
  <pre><code>&lt;WebView
      android:id="@+id/webView"
      android:layout_marginTop="6dp"
      android:layout_below="@+id/image"
      android:layout_width="match_parent"
      android:layout_height="fill_parent"
      android:hardwareAccelerated ="true"        
      /&gt;
  </code></pre>
  
  <p><strong>In activity file:</strong></p>
  
  <pre><code>webView = (WebView) findViewById(R.id.webView);
  backButton = (ImageView) findViewById(R.id.backButton);
  webView.setBackgroundColor(0);                      
  webView.loadUrl("file:///android_asset/Info.html");
  webView.setBackgroundColor(Color.TRANSPARENT);  
  /* this is used to make the background white after loading the file on screen. */
  </code></pre>