0
我用一个简单的RecyclerView和CardView创建没有任何样式属性的列表。RecyclerView分隔空间
<android.support.v7.widget.RecyclerView
android:id="@+id/shops_list"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
当我在Android 4.2.2设备上运行时,我得到了预期的结果,如下图所示。
但是,当我在Android版本6.0.1运行,有像下面CardView项目之间没有空格。
我想获得CardView项目之间的一些空间,像上面的截图。是否需要手动添加空间或分隔线高度?请帮忙:-)