Android CardView Example - SpartaCode

SpartaCode

Make your development faster and easier !

Android CardView Example



Step 1 : Add dependency to app gradle.build :


dependencies {
    compile 'com.android.support:cardview-v7:25.1.0'
}

Click on Sync.

Step 2 : Use the CardView into your Layouts.



 <android.support.v7.widget.CardView
        android:id="@+id/card_view"
        android:layout_width="100dp"
        android:layout_height="100dp"
        android:layout_gravity="center"
        android:layout_margin="5dp"
        card_view:cardCornerRadius="5dp"
        card_view:contentPadding="10dp">

    </android.support.v7.widget.CardView>




No comments:

Post a Comment

News

Get Amazing Traffic to your Site

Traffic Exchange

Post Bottom Ad

Responsive Ads Here