RecyclerView inside NestedScrollView onBindViewHolder calling for all getItemCount size
<p>When I put <code>RecyclerView</code> inside <code>NestedScrollView</code> then <code>onBindViewHolder</code> is calling for all row like say I have list which has size of 30 then <code>onBindViewHolder</code> is called for all 30 rows at one time even without scrolling </p>

<pre><code> RecyclerView list;
    LinearLayoutManager layoutManager = new LinearLayoutManager(getContext());
        list.setLayoutManager(layoutManager);
        layoutManager.setAutoMeasureEnabled(true);
        list.setNestedScrollingEnabled(false);
        list.addItemDecoration(new VerticalSpaceItemDecoration(5));
        list.setAdapter(adapter);
</code></pre>

<p>my xml is </p>

<pre><code>&lt;android.support.v4.widget.NestedScrollView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:fillViewport="true"
    android:scrollbars="none"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
 &lt;RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/grey"&gt;
    &lt;android.support.v7.widget.RecyclerView
            android:id="@+id/recycler_views"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_below="@+id/info"
            android:layout_marginBottom="5dp"
            android:layout_marginLeft="5dp"
            android:layout_marginRight="5dp"
            android:textAlignment="center"

            android:visibility="visible"
           /&gt;
</code></pre>

<p></p>

<p>but if I remove <code>NestedScrollView</code> it's working properly. </p>