RecyclerView实现画廊效果
xml布局(两边出现上一页和下一页)
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/bg"
>
<!-- 对,你没看错,就只有这一点点 -->
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width