导入依赖
compile 'com.android.support:recyclerview-v7:25.3.1' //效果 主布局文件<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.bwei.administrator.dianshang.activity.ThridActivity"> <android.support.v7.widget.RecyclerView android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/recycle_view" > </android.support.v7.widget.RecyclerView> </