Skip to content

Instantly share code, notes, and snippets.

@Velmm
Created December 28, 2017 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Velmm/92eb27059b6d3e736ab63f636154cd83 to your computer and use it in GitHub Desktop.
Save Velmm/92eb27059b6d3e736ab63f636154cd83 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:cardView="http://schemas.android.com/apk/res-auto"
android:id="@+id/carView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/darker_gray">
<ImageView
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="200dp"/>
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fontFamily="sans-serif-smallcaps"
android:gravity="bottom"
android:lines="1"
android:padding="5dp"
android:textStyle="bold"
android:textAppearance="@style/TextAppearance.AppCompat.Display1"
android:textColor="@android:color/background_light" />
</FrameLayout>
</android.support.v7.widget.CardView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment