title: match_parent property for children in a RelativeLayout
body: <p><strong>In short, is it possible to tell a child in a <em><code>RelativeLayout</code></em> to always match the height of that <em><code>RelativeLayout</code></em> regardless of how other children in that same <em><code>RelativeLayout</code></em> behave?</strong> In short, that's it. Details below.</p>
  
  <p>What I'm trying to achieve is a <code>ListView</code> row with at least three views, and one of those views would be kind of a stripe at the right side of the list entry (the red view below). The problem I'm having is that there is a <code>TextView</code> at the left side, and depeding on how much text I have, the stripe won't fill the whole layout. This is very clearly explained by images below.</p>
  
  <p><strong><code>ListView</code> item layout:</strong></p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"&gt;
  
  &lt;View
          android:id="@+id/bottom_line"
          android:layout_width="match_parent"
          android:layout_height="5dp"
          android:layout_alignParentBottom="true"
          android:background="#fc0" /&gt;
  
  &lt;!-- Why match_parent does not work in view below? --&gt;
  &lt;View
          android:id="@+id/stripe"
          android:layout_width="80dp"
          android:layout_height="wrap_content"
          android:minHeight="50dp"
          android:layout_alignParentRight="true"
          android:layout_alignParentTop="true"
          android:layout_alignParentBottom="true"
          android:background="#f00" /&gt;
  
  &lt;TextView
          android:id="@+id/text"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_toLeftOf="@id/stripe"
          android:text="This is a very long line, meant to completely break the match_parent property of the box at right"
          style="?android:textAppearanceLarge"/&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p><strong>Result:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/7bJH9.png" alt="RelativeLayout with child not filling the whole layout vertically"></p>
  
  <h1><strong>Setting stripe and root height to <code>match_parent</code> makes no difference. I did it.</strong></h1>
  
  <p><strong>Repeating the question, I want the red stripe to always fill the parent vertically.</strong> You can see stripe is not aligning to the top of root.</p>
  
  <p><em>A note: the above example is the simplest, self-contained example I can think of. It's just a <code>ListActivity</code> with an anonymous <code>ArrayAdapter</code> populated by a static <code>String</code> array. The relevant code in <code>onCreate</code> is at most 8 lines, so no worries there. It's really the layout. Besides, I have this working with nested <code>LinearLayout</code>s already, but I'm trying to reduce the depth of my layout structure a bit, if possible. <code>LinearLayout</code> works fine, as expected.</em></p>