在RecyclerView外层套上一层RelativeLayout即可。 如果列表中有edittext 不能写
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#F5F5F5"
android:overScrollMode="never"
android:scrollbars="none"/>
</RelativeLayout>