因為種種原因導緻嵌套使用,這裡隻記錄解決辦法。
1,xml中RecyclerView添加 android:nestedScrollingEnabled="false"
屬性
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);
複制