How to make ImageView fill vertically within RelativeLayout
<p>I put an ImageView and a TextView within a RelativeLayout that is used as list items, and want the ImageView to grow vertically with the line number of TextView. The drawable of the ImageView is a png picture of vertical bar.</p>

<p>With the following layout, thought it looks fine in the Layout view in Eclipse, the ImageView does not fill the height of the RelativeView at runtime. Instead, it alway keeps the original picture's height.</p>

<pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
android"
   android:layout_width="fill_parent"
   android:layout_height="fill_parent" &gt;

   &lt;ImageView android:id="@+id/iv"
       android:layout_width="wrap_content"
       android:layout_height="fill_parent"
       android:layout_alignParentLeft="true"
       android:src="@drawable/vbar"
       android:adjustViewBounds="false"
       android:scaleType="fitXY"/&gt;

   &lt;TextView
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:singleLine="false"
       android:layout_toRightOf="@id/iv"
       android:layout_alignParentBottom="true" /&gt;
&lt;/RelativeLayout&gt;
</code></pre>

<p>Why does it not work as I expect(or as shown in Eclipse Layout view)?</p>
