Created
January 6, 2017 05:04
-
-
Save prasad091/a725ba896344149eb7ed87506ff46162 to your computer and use it in GitHub Desktop.
CardView Xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<android.support.v7.widget.CardView | |
xmlns:card_view="http://schemas.android.com/apk/res-auto" | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:id="@+id/card_view" | |
android:layout_width="80dp" | |
android:layout_height="wrap_content" | |
card_view:cardUseCompatPadding="true" | |
card_view:cardCornerRadius="8dp" | |
android:layout_marginBottom="16dp"> | |
<RelativeLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<ImageView | |
android:id="@+id/country_photo" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:contentDescription="@string/action_settings" | |
android:src="@drawable/three" | |
android:scaleType="centerCrop" /> | |
<TextView | |
android:id="@+id/country_name" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:textSize="13sp" | |
android:text="@string/country_name" | |
android:textColor="@color/accent_color" | |
android:gravity="center" | |
android:layout_below="@+id/country_photo" | |
android:paddingBottom="8dp" | |
android:paddingTop="8dp" | |
android:layout_alignParentBottom="true" | |
android:background="@color/color_primary_dark"/> | |
</RelativeLayout> | |
</android.support.v7.widget.CardView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment