title: Downloaded picture doesn't fit ImageView although the size should be ok (novoda)
body: <p>I download a static map from Google Maps Static API. When I download the image in browser, the size is ok (728x224). You can check the url from below.</p>
  
  <p>But when I try to view it in my android app it's to small (540x166). Of course I could display it with 'centerCrop' but it's not ideal solution. As far as I know, both sizes are in pixels so it should fit perfectly. I log it this way:</p>
  
  <pre><code> Log.i(TAG, "view size: "+mapPicture.getWidth()+"/"+mapPicture.getHeight());
   Log.i(TAG, "pic size: "+mapPicture.getDrawable().getIntrinsicWidth()+"/"+mapPicture.getDrawable().getIntrinsicHeight());
  </code></pre>
  
  <p>And the logcat looks like this:</p>
  
  <pre><code>11-29 21:41:37.547: I/DetailsFragment(18064): view size: 728/224
  11-29 21:41:37.547: I/DetailsFragment(18064): http://maps.google.com/maps/api/staticmap?center=0,0&amp;zoom=3&amp;size=364x112&amp;scale=2&amp;sensor=false
  11-29 21:41:37.547: I/DetailsFragment(18064): pic size: 540/166
  </code></pre>
  
  <p>I download the image with <a href="https://github.com/novoda/ImageLoader" rel="nofollow">ImageManager</a> and test on a hdpi device.</p>
  
  <p><strong>So why the downloaded pic has different size than it should?</strong></p>
  
  <p><strong>Edit:</strong>
  When I download an image twice as big, the drawable inside the <code>ImageView</code> is almost the same size as previously: <code>pic size: 540/189</code></p>
  
  <p><a href="http://maps.google.com/maps/api/staticmap?center=52.2396,21.0174&amp;zoom=14&amp;size=729x225&amp;scale=2&amp;sensor=false" rel="nofollow">http://maps.google.com/maps/api/staticmap?center=52.2396,21.0174&amp;zoom=14&amp;size=729x225&amp;scale=2&amp;sensor=false</a></p>