title: Scale Imageview nicely
body: <p>The idea is to either display a photo or - if none is defined -  a small icon symbolizing it.</p>
  
  <p>I have defined the following ImageView in the layout:</p>
  
  <pre><code>        &lt;ImageView
              android:id="@+id/imgPic"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:adjustViewBounds="true"
              android:contentDescription="@+string/strImgPic"
              android:paddingRight="10dip"
              android:paddingTop="10dip"
              android:saveEnabled="false"
              android:src="@drawable/pic_icon" /&gt;
  </code></pre>
  
  <p>So the ImageView is pre-initialized with the 'icon' PNG.</p>
  
  <p>The code to load it:</p>
  
  <pre><code>try {
  imgURL = vinfo.getString("mainpic_url");
      if (imgURL.length() &gt; 1) {
     imgURL = getString(R.string.urlPicsFull) + imgURL;
     ImageView imgPic = (ImageView) findViewById(R.id.imgPic);
     ImageDownloader img = new ImageDownloader();
     img.download(imgURL, imgPic);
      }
   } catch (..) {
  (..)
  </code></pre>
  
  <p>ImageDownloader() basically does nothing else than retrieving the image asynchronously. The problem however is that if there  is NO image ( imgURL.length()==0 ) , the icon is displayed with a very large 'border' in the middle of an empty square in the layout. </p>
  
  <p>I would like the image to be scaled down (or up) to the width of the parent view, but the icon to display as it is (about 90 dip wide and high).</p>
  
  <p>Any suggestion on how to realize that?</p>