Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to give some padding between card views #1

Open
hasnain-ahmad opened this issue Jun 24, 2015 · 1 comment
Open

How to give some padding between card views #1

hasnain-ahmad opened this issue Jun 24, 2015 · 1 comment

Comments

@hasnain-ahmad
Copy link

Hello Dear,

How can i give some padding/spacing between CardViews , so that it appears separately in the design.

Thanks and regards
Hasnain Ahmad

@ghost
Copy link

ghost commented Dec 7, 2016

Since I just got into this, here's what I did.
Open your item.xml (or where ever you stored your CardView) and add the property:
android:layout_marginBottom="6dp"

This adds 6dp to the bottom of each CardView

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant