title: Android: Fitting images on screens with same densities but different size
body: <p>I have a layout which looks like this:</p>
  
  <pre><code> &lt;LinearLayout&gt;
       &lt;ImageView&gt;
       android:width="wrap_content"
       android:height:"wrap_content"
        ...
       &lt;/ImageView&gt;
  
       &lt;ImageView&gt;
       android:width="wrap_content"
       android:height:"wrap_content"
        ...
       &lt;/ImageView&gt;
  
       &lt;ImageView&gt;
       android:width="wrap_content"
       android:height:"wrap_content"
        ...
       &lt;/ImageView&gt;
  
       &lt;ImageView&gt;
       android:width="wrap_content"
       android:height:"wrap_content"
        ...
       &lt;/ImageView&gt;
   &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>The sizes of the images are such that they fill the screen on a 540x960, 275ppi screen. But when I run my app on an emulator, the last image is squished.</p>
  
  <p>After reading the <a href="http://developer.android.com/guide/practices/screens_support.html" rel="nofollow">Supporting Multiple Screens</a> document, I learned that specifying the image dimensions in dp's instead of "wrap_content" should cover for different density screens.</p>
  
  <p>But what about screens with different sizes? For example, if I have two different-sized screens with the same pixel densities, I can have a condition where my image fits the screen on one of them but not on the other, right? Is having two different layouts the only solution?</p>
  
  <p>For example, the two different-sized (but same density) screens might have 100 and 200 vertical pixels available, and image is sized 150dps, so it wouldn't fit on the first screen. Am I right?</p>
  
  <p>Thanks in advance</p>