title: ImageView taking too much vertical space
body: <p>i am working on a project with a <a href="https://github.com/etsy/AndroidStaggeredGrid" rel="noreferrer">staggered gridview</a> that can support varying height for each nested view,</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:background="@drawable/layout_border"
          android:orientation="vertical"&gt;
  
          &lt;ImageView
              android:id="@+id/imageView"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:src="@drawable/ic_launcher" /&gt;
  
          &lt;TextView
              android:id="@+id/textView"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
  
              android:background="@android:color/holo_blue_light" /&gt;
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>as you can see in the pictures, for wide images the ImageView takes too much vertical space,
  this seems to not be an issue for narrow pictures,
   how do i fix this?
  <img src="https://i.stack.imgur.com/x98Gc.png" alt="Vertical"> <img src="https://i.stack.imgur.com/iagdz.png" alt="Horizontal"></p>