<?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"
                                    android:layout_width="0dp"
                                    tools:layout_width="224dp"
                                    android:layout_height="256dp"
                                    android:transitionName="card_game"
                                    android:focusable="true"
                                    android:clickable="true"
                                    android:foreground="?android:attr/selectableItemBackground"
    >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <ImageView
            android:id="@+id/image_game_screen"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:transitionName="image_game_screen"
            android:layout_weight="1"
            tools:src="@drawable/placeholder_screenshot"
            tools:scaleType="centerCrop"/>

        <TextView
            android:id="@+id/text_game_title"
            style="@android:style/TextAppearance.Material.Subhead"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="16dp"
            android:layout_marginRight="16dp"
            android:layout_marginTop="16dp"
            android:layout_toStartOf="@+id/button_details"
            android:ellipsize="end"
            android:lines="1"
            android:maxLines="1"
            tools:text="The Legend of Zelda: The Wind Waker"/>

        <TextView
            android:id="@+id/text_company"
            style="@android:style/TextAppearance.Material.Caption"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginBottom="16dp"
            android:layout_marginTop="8dp"
            android:layout_marginLeft="16dp"
            android:layout_marginRight="16dp"
            android:ellipsize="end"
            android:lines="1"
            android:maxLines="1"
            tools:text="Nintendo"/>

    </LinearLayout>

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

