title: Changing ImageView source
body: <p>I have an <code>ImageView</code> with a source image set in the xml using the following syntax:</p>
  
  <pre class="lang-xml prettyprint-override"><code>   &lt;ImageView 
        android:id="@+id/articleImg"
        style="@style/articleImgSmall_2"
        android:src="@drawable/default_m" /&gt;
  </code></pre>
  
  <p>Now I need to change this image programmatically. What I need to do is delete the old image and add a new one though. What I have done is this:</p>
  
  <pre class="lang-java prettyprint-override"><code>myImgView.setBackgroundResource(R.drawable.monkey);
  </code></pre>
  
  <p>It works but I noticed android stacks the new image on top of the old one (dont ask me how I found out it's not relevant for the discussion :). I definitely need to get rid of the old one before setting the new image.</p>
  
  <p>How can I achieve that?</p>