<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:overScrollMode="never">
<androidx.recyclerview.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:nestedScrollingEnabled="false"/>
</androidx.core.widget.NestedScrollView>
两种解决方式(任选其一):
方法1.布局文件的RecyclerView中设置
android:nestedScrollingEnabled="false"
方法2.Java代码中设置
recyclerView.setNestedScrollingEnabled(false);