2017-10-18 101 views
0

我的回收可以滾動NestedScrollView。然而,這並不平常。任何人都可以幫我解決這個問題。在NestedScrollView中回收視圖

這裏是我的代碼

<android.support.v4.widget.NestedScrollView 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    app:layout_behavior="@string/appbar_scrolling_view_behavior" 
    android:fillViewport="true"> 

    <android.support.v7.widget.RecyclerView 
     android:id="@+id/fg_movie_list" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent"> 

    </android.support.v7.widget.RecyclerView> 

</android.support.v4.widget.NestedScrollView> 
+0

我在想,爲什麼你會需要一個嵌套的滾動視圖作爲recyclerview –

+0

我使用活動 導航抽屜的父母,協調佈局 –

+0

和片段包含回收視圖 –

回答

1

使用

mRecyclerView.setNestedScrollingEnabled(false); 
mRecyclerView.setHasFixedSize(true);