title: imageview height as the wrap_content of the shown image
body: <p>I want the width of an ImageView to be set by the parent and the height should be aspect proportional. The reasons for this is that next is shown a TextView that I want to place just under the ImageView.</p>
  
  <p>I can get image to show correctly using</p>
  
  <pre><code>android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  </code></pre>
  
  <p>however the ImageView height become the parent height which is much larger than that of the shown stretched image. One idea was to make parent smaller vertically, but.. there I don't yet know the stretched image size.</p>
  
  <p>The following doesn't work because a small image is not filled up horizontally.</p>
  
  <pre><code>android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  </code></pre>
  
  <p>Messing around with </p>
  
  <pre><code>android:layout_height="wrap_content"
  </code></pre>
  
  <p>for the RelativeLayout surrounding it all does not help. Also tried FrameLayout and LinearLayout and failed.</p>
  
  <p>Any ideas?</p>