title: Android: Draw line behind ImageView in list item
body: <p>I would like to draw a line behind an ImageView in a list item which fills the entire height of the list item. The image in the following link shows my desired result. The blue line is the one I want.</p>
  
  <p><a href="https://www.dropbox.com/s/fbdsuvcyxaz1pnj/listViewDesired.png?dl=0" rel="nofollow">https://www.dropbox.com/s/fbdsuvcyxaz1pnj/listViewDesired.png?dl=0</a></p>
  
  <p>I have a ListView with a custom adapter and layout for each row. The row is comprised of a relative layout with a few elements: an image with a specific size anchored to the left, a text view with a specific size anchored to the right, and a text view which fills the rest of the space in between. </p>
  
  <p>I want to show a thin line coming out of the top and bottom of the ImageView and fill the rest of the space for that list item. The List item's size can become larger than the image size if there is a lot of text in the middle. How can I achieve this?</p>
  
  <p>I have tried multiple approaches with a framelayout with a view that matches/fills the parent and the ImageView, and a linearlayout with 3 views (top line, imageView, bottom line that fills the parent), and the image looks correct in the IDE render, but the lines do not extend all the way or even show up when the app is actually running.</p>
  
  <p>This is my layout without a line behind the imageview.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                  android:padding="@dimen/marginTop"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"&gt;
    &lt;!--Line should be "behind" (extending from top and bottom) of this imageView and should extend to the full height of the RelativeLayout after it has been rendered--&gt;
    &lt;ImageView
            android:id="@+id/tabIcon"
            android:src="@drawable/face"
            android:layout_marginTop="@dimen/margin"
            android:layout_width="@dimen/catchSize"
            android:layout_height="@dimen/catchSize"/&gt;
    &lt;TextView
            android:id="@+id/tabUpdateTime"
            android:layout_marginLeft="@dimen/margin"
            android:layout_alignParentRight="true"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/&gt;
    &lt;TextView
            android:id="@+id/tabText"
            android:text="@string/long_string"
            android:layout_marginLeft="@dimen/margin"
            android:layout_marginRight="@dimen/margin"
            android:layout_toRightOf="@id/tabIcon"
            android:layout_toLeftOf="@id/tabUpdateTime"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"/&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>