因为种种原因导致嵌套使用,这里只记录解决办法。
1,xml中RecyclerView添加android:nestedScrollingEnabled="false"
属性
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:nestedScrollingEnabled="false"/>
或
2,代码设置
mRecyclerView.setNestedScrollingEnabled(false);