RecyclerView in NestedScrollView onBindViewHolder, das alle getItemCount-Größen aufruft

Wenn ichRecyclerView InnerhalbNestedScrollView dannonBindViewHolder ruft für alle Zeile wie sagen, ich habe Liste, die Größe von 30 hat, dannonBindViewHolder wird für alle 30 Zeilen gleichzeitig aufgerufen, auch ohne zu scrollen

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

my xml is

<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">
 <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/grey">
    <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"
           />

aber wenn ich @ entferNestedScrollView es funktioniert richtig.

Antworten auf die Frage(8)

Ihre Antwort auf die Frage