title: How to fade in picture in ImageView loaded from url
body: <p>I would like to apply a fade-in animation to an ImageView to create the effect that the image, which is loaded from a url, fades in when the download is completed. </p>
  
  <p>I know how to download an image from a url to an ImageView, like in <a href="https://stackoverflow.com/questions/2471935/how-to-load-an-imageview-by-url-in-android">this answer</a>, and I know how to apply a fade-in animation to an imageView <a href="https://stackoverflow.com/questions/2597329/how-to-do-a-fadein-of-an-image-on-an-android-activity-screen">like here</a>.</p>
  
  <p>This attempt</p>
  
  <pre><code>Drawable d = ImageUtils.fetchDrawable("the url");
  imageView.setImageDrawable(d);
  imageView.startAnimation(fadeInAnimation);
  </code></pre>
  
  <p>results in a blink effect (see, not see, fade in to see). Reversing the order of the two last lines also results in a blink.</p>
  
  <p>I've googled and searched SO for a solution in the form of a callback / listener - something like this:</p>
  
  <pre><code>imageView.setOnLoadCompleteListener...
  </code></pre>
  
  <p>to register the loading complete event in ImageView but I haven't found anything along those lines. </p>
  
  <p>I'd be grateful for any pointers to a solution on how to implement this effect.</p>