效果图如下
引入别人的git仓库,在bulid.gradle文件中添加,就可以运用大佬写的PagerGridLayoutManager类了:
api 'com.github.shenbengit:PagerGridLayoutManager:1.1.7'
布局文件
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="12dp"
android:layout_marginTop="12dp"
android:orientation="vertical" >
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/listView"
android:layout_width="