title: Scrollview under the header
body: <p>Is there a way to do this in android studio? I want to achieve that when you scroll down the header will overlap above and under is the scrollview part. What I've got is it scrolls over the header. <a href="https://i.stack.imgur.com/LhwQ0.png" rel="nofollow noreferrer">In android studio</a></p>
  <p>This is what Im trying to achieve that was made in figma</p>
  <p><a href="https://i.stack.imgur.com/g4gGX.png" rel="nofollow noreferrer">Default</a></p>
  <p><a href="https://i.stack.imgur.com/6JJ4L.png" rel="nofollow noreferrer">When you scroll</a></p>
  <p>So far this is what my code looks like</p>
  <pre><code>&lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      tools:context=&quot;.Fragment.RecordFragment&quot;
      android:orientation=&quot;vertical&quot;&gt;
  
      &lt;View
          android:layout_width=&quot;369dp&quot;
          android:layout_height=&quot;71dp&quot;
          android:layout_alignParentLeft=&quot;true&quot;
          android:layout_marginLeft=&quot;13dp&quot;
          android:layout_alignParentTop=&quot;true&quot;
          android:layout_marginTop=&quot;14dp&quot;
          android:background=&quot;@drawable/ic_header&quot;/&gt;
  
      &lt;TextView
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;50dp&quot;
          android:layout_marginStart=&quot;25dp&quot;
          android:layout_marginTop=&quot;25dp&quot;
          android:layout_marginEnd=&quot;25dp&quot;
          android:layout_marginBottom=&quot;25dp&quot;
          android:text=&quot;Record&quot;
          android:textAlignment=&quot;center&quot;
          android:textColor=&quot;@color/white&quot;
          android:textSize=&quot;35sp&quot; /&gt;
  
  
      &lt;ScrollView
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;&gt;
  
          &lt;LinearLayout
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:gravity=&quot;center&quot;
              android:orientation=&quot;vertical&quot;
              android:paddingBottom=&quot;100dp&quot;&gt;
  
              &lt;TextView
                  android:id=&quot;@+id/txtDate&quot;
                  android:layout_width=&quot;match_parent&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:layout_alignParentTop=&quot;true&quot;
                  android:layout_marginTop=&quot;128dp&quot;
                  android:text=&quot;Date for today&quot;
                  android:textAlignment=&quot;center&quot;
                  android:textColor=&quot;@color/black&quot;
                  android:textSize=&quot;50sp&quot; /&gt;
  
              &lt;RelativeLayout
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;wrap_content&quot;&gt;
  
                  &lt;View
                      android:layout_width=&quot;316dp&quot;
                      android:layout_height=&quot;201dp&quot;
                      android:layout_alignParentLeft=&quot;true&quot;
                      android:layout_alignParentTop=&quot;true&quot;
                      android:layout_gravity=&quot;center&quot;
                      android:layout_marginTop=&quot;50dp&quot;
                      android:background=&quot;@drawable/sec_bp&quot; /&gt;
  
                  &lt;EditText
                      android:layout_width=&quot;250dp&quot;
                      android:layout_height=&quot;30dp&quot;
                      android:layout_marginLeft=&quot;30dp&quot;
                      android:layout_marginTop=&quot;70dp&quot;
                      android:background=&quot;@drawable/rounded_corner&quot;
                      android:gravity=&quot;center&quot;
                      android:hint=&quot;SBP&quot; /&gt;
  
                  &lt;EditText
                      android:layout_width=&quot;250dp&quot;
                      android:layout_height=&quot;30dp&quot;
                      android:layout_marginLeft=&quot;30dp&quot;
                      android:layout_marginTop=&quot;120dp&quot;
                      android:background=&quot;@drawable/rounded_corner&quot;
                      android:gravity=&quot;center&quot;
                      android:hint=&quot;DBP&quot; /&gt;
  
                  &lt;EditText
                      android:layout_width=&quot;250dp&quot;
                      android:layout_height=&quot;30dp&quot;
                      android:layout_marginLeft=&quot;30dp&quot;
                      android:layout_marginTop=&quot;170dp&quot;
                      android:background=&quot;@drawable/rounded_corner&quot;
                      android:gravity=&quot;center&quot;
                      android:hint=&quot;BPM&quot; /&gt;
  
                  &lt;Button
                      android:layout_width=&quot;70dp&quot;
                      android:layout_height=&quot;30dp&quot;
                      android:layout_marginLeft=&quot;120dp&quot;
                      android:layout_marginTop=&quot;210dp&quot;
                      android:background=&quot;@drawable/rounded_corner&quot;
                      android:gravity=&quot;center&quot;
                      android:text=&quot;save&quot; /&gt;
  
              &lt;/RelativeLayout&gt;
  
              &lt;View
                  android:layout_width=&quot;316dp&quot;
                  android:layout_height=&quot;117dp&quot;
                  android:layout_alignParentLeft=&quot;true&quot;
                  android:layout_alignParentTop=&quot;true&quot;
                  android:layout_marginTop=&quot;50dp&quot;
                  android:background=&quot;@drawable/sec_temp&quot; /&gt;
  
              &lt;View
                  android:layout_width=&quot;316dp&quot;
                  android:layout_height=&quot;117dp&quot;
                  android:layout_alignParentLeft=&quot;true&quot;
                  android:layout_alignParentTop=&quot;true&quot;
                  android:layout_marginTop=&quot;50dp&quot;
                  android:background=&quot;@drawable/sec_temp&quot; /&gt;
  
  
          &lt;/LinearLayout&gt;
  
      &lt;/ScrollView&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>