title: ScrollView inside RelativeLayout doesn't work
body: <p>I have a LinearLayout and dynamically created elements in it. I need to make it scrollable if its height will be larger than 0.8 of screen's height. I'm trying to do it like that. Where is my mistake?</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="match_parent" android:layout_height="match_parent"
          android:id="@+id/layoutContainer" android:orientation="vertical"
          android:baselineAligned="false" android:weightSum="1"&gt;
  
  
              &lt;ScrollView
                  android:layout_width="match_parent"
                  android:layout_height="0dp"
                  android:scrollbars="vertical"
                  android:layout_weight="0.85" &gt;
              &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                  android:layout_width="match_parent" android:layout_height="wrap_content"
                  android:id="@+id/alarmsLayout" android:orientation="vertical"
                  android:layout_marginTop="70dp" &gt;
              &lt;/LinearLayout&gt;
              &lt;/ScrollView&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="0dp"
              android:layout_weight="0.15"&gt;
              &lt;ImageView
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:id="@+id/addAlarmBtn"
                  android:src="@drawable/time"
                  android:layout_marginBottom="15dp" /&gt;
          &lt;/LinearLayout&gt;
      &lt;/LinearLayout&gt;
  </code></pre>