我需要在两者之间增加空间CardView.
我试图使用它card_view:cardUseCompatPadding,它不起作用.有帮助吗?
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.CardView
android:id="@+id/all_restaurant_card_view"
android:layout_width="wrap_content"
android:layout_height="120dp"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
card_view:cardPreventCornerOverlap="true"
card_view:cardUseCompatPadding="true">
Run Code Online (Sandbox Code Playgroud)
Tho*_* V. 11
android:layout_marginBottom="4dp" //4dp is recommended
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9972 次 |
| 最近记录: |