title: Relative layout height set to match_parent work as wrap_content
body: <p>I have a <code>relative layout</code> which has <code>ScrollView</code> and it contain another <code>RelativeLayout</code>. Child Relative layout <code>layout_height</code> is set to <code>match_parent</code> but it react as its set to wrap_content</p>
  
  <p><strong>Here is xml code</strong></p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:paddingBottom="@dimen/activity_vertical_margin"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      app:layout_behavior="@string/appbar_scrolling_view_behavior"
      tools:context="com.digitnomics.isite.Signage"
      tools:showIn="@layout/activity_signage"&gt;
  
      &lt;ScrollView
          android:id="@+id/scrollView2"
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
  
          &lt;RelativeLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"&gt;
  </code></pre>
  
  <p>Here the preview of the layout</p>
  
  <p><strong>ScrollView set to match_parent</strong></p>
  
  <p><a href="https://i.stack.imgur.com/lV3d0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lV3d0.png" alt="enter image description here"></a></p>
  
  <p><strong>Child RelativeLayout set to match_parent</strong></p>
  
  <p><a href="https://i.stack.imgur.com/aUgRh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aUgRh.png" alt="enter image description here"></a></p>
  
  <p>How can I force Child Relative layout <code>layout_height</code> to fill entire height?</p>