Match height of a parent layout
<p>I'd like a view to match the height of its parent in the following:</p>

<pre><code>&lt;RelativeLayout
    layout_height="wrap_content"&gt;

    &lt;LinearLayout
        id="@+id/A"
        layout_height="wrap_content"
        layout_alignParentTop="true"&gt;
        ...
    &lt;/LinearLayout&gt;

    &lt;LinearLayout
        id="@+id/B"
        layout_height="match_parent"   &lt;-- possible?
        layout_alignParentTop="true"&gt;
        ...
    &lt;/LinearLayout&gt;

&lt;/RelativeLayout&gt;
</code></pre>

<p>So linear layout A gets inflated to lets say 100dp. Linear layout B gets inflated to about 50 dp tall. But I want it to match the height of the parent, which in this case should have been 100dp to accomodate A. Is there a way to do this? I've got my layout as above, but B does not extend to the full height that A is setting for the parent container.</p>

<p>Thanks</p>
