How to manage Whatsapp Scroll View Logic (Android)
<p>I try to create a layout with scrol view inside a scrol view how Whatssupp works 
here is how my layout looks like
<a href="https://i.stack.imgur.com/pfqmf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pfqmf.png" alt="enter image description here"></a></p>

<p>When I scroll up "number One part" should dissapear and "number two" with its lisview should should take Number Ones place but TOPICS Should remain at the top of the screen. Very Familiar as Whatssupp. The examples that I found doesnt fix my problem. Hope to receive any help. Thank you.</p>

<p>and here is my xml codes</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"&gt;


    &lt;!-- Main Container --&gt;
    &lt;LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"&gt;
        &lt;!--Following  Followers Part 1 --&gt;
        &lt;LinearLayout
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:orientation="horizontal"&gt;

            &lt;Button
                android:id="@+id/btn_leftside_layout_2_followers"
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="3"
                android:text="554 Followers" /&gt;

            &lt;ImageView
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="2"
                android:src="@drawable/person_icon" /&gt;

            &lt;Button
                android:id="@+id/btn_leftside_layout_2_following"
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="3"
                android:text="654 Following" /&gt;

        &lt;/LinearLayout&gt;

        &lt;TextView
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="0.7"
            android:gravity="center"
            android:text="@string/txt_frag_followers_following"
            android:textSize="35dp" /&gt;
        &lt;!--TOPICS Part 2 --&gt;
        &lt;LinearLayout
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="4"
            android:background="@color/grey_200"
            android:orientation="vertical"&gt;

            &lt;Button
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Some Button" /&gt;

            &lt;Button
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Some Button" /&gt;

            &lt;Button
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Some Button" /&gt;

            &lt;Button
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Some Button" /&gt;

            &lt;Button
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Some Button" /&gt;

            &lt;Button
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Some Button" /&gt;

            &lt;Button
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Some Button" /&gt;

            &lt;Button
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Some Button" /&gt;

            &lt;Button
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Some Button" /&gt;

            &lt;Button
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Some Button" /&gt;


            &lt;ListView
                android:id="@+id/lv_leftside_layout_2"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"&gt;

            &lt;/ListView&gt;

        &lt;/LinearLayout&gt;

    &lt;/LinearLayout&gt;


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