title: Relativelayout inside Scrollview not working
body: <p>I have a relative layout inside a scrollview and I can't get it to work.I tried setting my relative layout's height to wrap_content but it doesn't work also. I can get it to work with linear layout but I don't want to use it for some reason.</p>
  
  <p>Here is my xml:</p>
  
  <pre><code>&lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:fillViewport="true"&gt;
  
  &lt;RelativeLayout
      android:id="@+id/container"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="#FFFFFF"
      android:orientation="vertical"
      android:padding="14dp"&gt;
  
      &lt;EditText
          android:layout_width="match_parent"
          android:layout_height="48dp"
          android:inputType="textPersonName"
          android:id="@id/feedback_name"
          android:hint="Name"
          android:textColor="#000000"
          android:layout_alignParentTop="true"
          android:ems="10"
          android:maxHeight="48dp"
          android:textSize="14sp" /&gt;
  
      &lt;EditText
          android:layout_width="match_parent"
          android:layout_height="48dp"
          android:inputType="textEmailAddress"
          android:ems="10"
          android:maxHeight="48dp"
          android:id="@id/feedback_email"
          android:hint="Your email (optional)"
          android:textColor="#000000"
          android:layout_below="@id/feedback_name"
          android:textSize="14sp" /&gt;
  
      &lt;Spinner
          android:id="@id/feedback_concern"
          android:layout_width="match_parent"
          android:layout_height="48dp"
          android:minHeight="48dp"
          android:layout_below="@id/feedback_email" /&gt;
  
      &lt;EditText
              android:layout_width="match_parent"
              android:layout_height="0dp"
              android:inputType="textMultiLine"
              android:ems="10"
              android:id="@id/feedback_message"
              android:hint="Message"
              android:textColor="#000000"
          android:layout_weight="1"
          android:minHeight="70dp"
              android:gravity="top"
              android:textSize="14sp"
              android:layout_below="@id/feedback_concern"
          android:layout_above="@id/feedback_send"
  /&gt;
  
  
      &lt;Button
          android:layout_width="match_parent"
          android:layout_height="48dp"
          android:text="Send"
          android:maxHeight="48dp"
          android:id="@id/feedback_send"
          android:background="@color/light"
          android:textColor="#FFFFFF"
          android:layout_alignParentBottom="true"
          android:layout_alignParentLeft="true"
          android:layout_alignParentStart="true" /&gt;
  
      &lt;ProgressBar
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:id="@+id/progressBar"
          android:visibility="invisible"
          android:layout_gravity="center_horizontal"
          android:layout_alignParentBottom="true"
          android:layout_centerHorizontal="true" /&gt;
  
      &lt;TextView
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:textAppearance="?android:attr/textAppearanceMedium"
          android:text="error"
          android:fontFamily="sans-serif-light"
          android:id="@id/errorText"
          android:visibility="invisible"
          android:layout_gravity="center_horizontal"
          android:textColor="@android:color/black"
          android:layout_below="@id/feedback_message"
          android:layout_centerHorizontal="true"
          android:layout_alignParentBottom="true"
          android:gravity="center"
          android:singleLine="true" /&gt;
  
  &lt;/RelativeLayout&gt;
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>Portrait:</p>
  
  <p><img src="https://i.stack.imgur.com/aAh4s.png" alt="enter image description here"></p>
  
  <p>Landscape:</p>
  
  <p><img src="https://i.stack.imgur.com/XxRWj.png" alt="enter image description here"></p>
  
  <p>You can see that the message edittext disappeared when I go to landscape mode and the layout doesn't scroll</p>