在NestedScrollView中回收视图
问题描述:
我的回收可以滚动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>
答
使用
mRecyclerView.setNestedScrollingEnabled(false);
mRecyclerView.setHasFixedSize(true);
我在想,为什么你会需要一个嵌套的滚动视图作为recyclerview –
我使用活动 导航抽屉的父母,协调布局 –
和片段包含回收视图 –