title: Set transparent background of an imageview on Android
body: <p>I am using a web view in which I am adding an image view. How can I set the background of this image view to transparent?</p>
  
  <p>I have tried this:</p>
  
  <pre><code>mImageview.setBackgroundResource(R.color.trans);
  </code></pre>
  
  <p>Where <code>trans</code> → <code>&lt;color name="trans"&gt;#00000000 &lt;/color&gt;</code>.</p>