title: Changing the image in an Android compound TextView - not working
body: <p>OK people, I'm going seriously nuts here. That late night stuff when you've tried everything...</p>
  
  <p>I've got a compound TextView with an image on the left. The image (a little pic that just says "loading") is set with:</p>
  
  <pre><code>Drawable img = getBaseContext().getResources().getDrawable( R.drawable.loading );
  img.setBounds( 0, 0, 120, 120 );
  tv.setCompoundDrawables( img, null, null, null );
  </code></pre>
  
  <p>tv is the TextView variable. That works fine. However, later I want to replace the image with a new drawable, I've tried to call setCompoundDrawables again:</p>
  
  <pre><code>tv.setCompoundDrawables( new_img, null, null, null );
  </code></pre>
  
  <p>I've also tried getting the array of drawables for the TextView and replacing the left one, as shown here:</p>
  
  <pre><code>Drawable[] drw = tv.getCompoundDrawables();
  drw[0] = new_img;
  </code></pre>
  
  <p>The code runs ok in debug mode. No exceptions occur. All UI handling performed within the UI thread. Images seem to be ok, etc, but the display does not change. Do I have to refresh the display in some way?</p>
  
  <p>By the way, the TextViews are added within a vertical LinearLayout if that matters. I'm pretty sure I'm missing something obvious here but I can't see it. Many thanks in advance.</p>
  
  <p>(Yes, I know I could replace my design with an ImageView and a vanilla TextView, however for performance reasons I'd prefer to stick with a Compound TextView if possible)</p>