title: How to show default image while image is being downloaded using AsyncTask?
body: <p>I am using <code>AsyncTask</code> to download images from remote server and show them in a <code>ListView</code>. I am using <strong><a href="http://android-developers.blogspot.in/2010/07/multithreading-for-performance.html" rel="nofollow noreferrer">this blog</a></strong> to accomplish it and everything is working fine.</p>
  
  <p>The only problem in this blog is that a ColorDrawable is being shown while the image is being downloaded. But I want to show a default image while the image is being downloaded. Just like in the attached image below:</p>
  
  <p><img src="https://i.stack.imgur.com/4E6GT.png" alt="image list"></p>
  
  <p>Here you can see that:</p>
  
  <ol>
  <li>Images for Taylor Loother and Oye Oye have already been downloaded.</li>
  <li>There is no image for Gopala Govinda on the server , so I am not
  downloading image for him from the server and showing Default image.</li>
  <li><p>For Hellboy, the image is still being downloaded , so a color
  background (the thin black line) is showing up against his name. <strong>I
  don't want to show this black line . I want to show the default
  image</strong> just like in front of Gopala Govinda until the image is not
  loaded from the server for Hellboy.</p>
  
  <p>Does anyone have any idea how to do that?</p></li>
  </ol>