<!-- 1.將RecyclerView 用 RelativeLayout 包裹 -->
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="15dp"
>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:nestedScrollingEnabled="false"
/>
<!-- 2.android:nestedScrollingEnabled="false" 禁止滑動 -->
</RelativeLayout>