Recyclerview mit endlosem Scrollen in der nestedscrollview, löst onScrolled @ a
Ich habe eine Recyclingübersicht in der nestedscrollview:
<android.support.v4.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<org.apmem.tools.layouts.FlowLayout
android:id="@+id/filter_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/green_main"
android:paddingLeft="@dimen/small_horizontal_margin"
android:paddingRight="@dimen/small_horizontal_margin"
/>
<android.support.v7.widget.RecyclerView
app:layout_behavior="@string/appbar_scrolling_view_behavior"
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:scrollbars="vertical"
android:paddingTop="@dimen/vertical_margin"/>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
Recyclerview hat OnScrollListener, der das endlose Scrollen handhabt, entnommen aus diesem Beispiel:https: //guides.codepath.com/android/Endless-Scrolling-with-AdapterViews-and-RecyclerVie. Es scheint jedoch, dass nestedscrollview die Methode onScrolled auslöst, sodass die gesamte Liste der Elemente sofort geladen wird.
Frage Wie kann ich das verhindern?
Hinweis, alles funktioniert perfekt mit recyclerview, das sich nicht in nestedscrollview befindet