nested scrollview + recyclerview, strange autoscroll behaviour : <p>In a view pager I have several fragments, one of them uses a nested scrollview with a header and a recyclerview : </p>

<pre><code>&lt;android.support.v4.widget.NestedScrollView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/scrollview"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fillViewport="true"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"
    tools:context="com.m360.android.fragment.Members.MemberDetailsFragment"&gt;

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

        &lt;header/&gt;

        &lt;android.support.v7.widget.RecyclerView
            android:id="@+id/recycler"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:clipToPadding="false"
            android:paddingTop="0dp" /&gt;

    &lt;/LinearLayout&gt;

&lt;/android.support.v4.widget.NestedScrollView&gt;
</code></pre>

<p>The tag "header" represents a complex layout that I didn't want to post here as it stretches out the code a lot.</p>

<p>when I switch between the tabs, it scrolls strait to the recycler view. The header is hidden, I have to scroll up to see it.</p>

<p>Any ideas on what causes that ? I don't wanna use a type in my adapter if I can avoid it.</p>
