Android - Scroll of the content to top of the screen
<p>I have an app with the structure of the image below (1) in my XML. I need you to do scroll, the app remains as in the image (2). I do not know how it works nicely CoordinatorLayout, NestedScrollView...</p>

<p>What changes do I need in my xml to get it? Thank you</p>

<p><a href="https://i.stack.imgur.com/sGST8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sGST8.png" alt="enter image description here"></a></p>

<p><strong>XML</strong></p>

<pre><code>&lt;LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="@color/color_primary_dark"&gt;

    &lt;include
        android:id="@+id/fondo_toolbar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        layout="@layout/toolbar" /&gt;

    &lt;LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"&gt;

        &lt;RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="200dp"
            android:background="@color/black"&gt;

            &lt;com.example.HackyViewPager
                android:id="@+id/home_pager"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@color/grey_dark"/&gt;

            &lt;com.viewpagerindicator.CirclePageIndicator
                android:id="@+id/home_indicator"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@android:color/transparent"
                android:padding="15dp"/&gt;

        &lt;/RelativeLayout&gt;

        &lt;include
            android:id="@+id/home_footer"
            layout="@layout/home_footer"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"/&gt;

        &lt;android.support.design.widget.TabLayout
            android:id="@+id/sliding_tabs"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@color/color_primary_dark"
            android:elevation="0dp"
            app:tabMode="scrollable"
            app:tabGravity="center"/&gt;

        &lt;android.support.v4.view.ViewPager
            android:id="@+id/tabpager"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@color/grey_dark" /&gt;

    &lt;/LinearLayout&gt;

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