首先实现方式是 1.RecyclerView
2.ViewPager
我这里实现的方式是用的RecyclerView,欢迎大家共同探讨
实现方法:
第一步:
RecyclerView的基本实现 大家都会写,这里就不列举了。
注意点:就是item的最外层布局需要 match_parent
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/room_view" android:layout_width="match_parent" android:layout_height=