android - RecyclerView Divider Space -
i create list simple recyclerview , cardview without style properties.
<android.support.v7.widget.recyclerview android:id="@+id/shops_list" android:layout_width="match_parent" android:layout_height="match_parent"/>
and expected result when run in android 4.2.2 device following screenshot.
but, when run in android version 6.0.1, there no space between cardview item following.
i space between cardview item above screenshot. need add space or divider height manually? please :-)
use app:cardusecompatpadding="true"
in cardview
.
cardview adds padding in platforms pre-l draw shadows. in l, unless set
usecompatpadding=true
, there should not gap.
Comments
Post a Comment