Android 循环视图分隔符空间

Android 循环视图分隔符空间,android,android-recyclerview,Android,Android Recyclerview,我使用简单的RecyclerView和CardView创建了一个列表,没有任何样式属性 <android.support.v7.widget.RecyclerView android:id="@+id/shops_list" android:layout_width="match_parent" android:layout_height="match_parent"/> 但是,当我在Android版本6.0.1中运行时,CardV

我使用简单的RecyclerView和CardView创建了一个列表,没有任何样式属性

<android.support.v7.widget.RecyclerView
        android:id="@+id/shops_list"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>

但是,当我在Android版本6.0.1中运行时,CardView项之间没有空格,如下所示


我想在上面截图中的CardView项目之间留出一些空间。是否需要手动添加空间或分隔高度?请帮助:-)

cardwiew
中使用
app:cardusecompatipadding=“true”

CardView在platforms pre-L中添加填充以绘制阴影。在L中,除非设置
useCompatPadding=true
,否则不应该有任何间隙


CardView
中使用app:cardUseCompatPadding=“true”

CardView在platforms pre-L中添加填充以绘制阴影。在L中,除非设置
useCompatPadding=true
,否则不应该有任何间隙