<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?attr/selectableItemBackground"
    android:clickable="true"
    android:clipToPadding="false"
    android:focusable="true"
    android:paddingStart="4dp"
    android:paddingTop="8dp"
    android:paddingEnd="4dp"
    android:paddingBottom="8dp"
    android:transitionName="card_game">

    <androidx.cardview.widget.CardView
        android:id="@+id/card_game_art"
        android:layout_width="115dp"
        android:layout_height="161dp"
        app:cardCornerRadius="4dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent">

        <ImageView
            android:id="@+id/image_game_screen"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="1" />

        <TextView
            android:id="@+id/text_game_title_inner"
            style="@android:style/TextAppearance.Material.Subhead"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:ellipsize="end"
            android:gravity="center|top"
            android:maxLines="2"
            android:paddingLeft="2dp"
            android:paddingRight="2dp"
            android:paddingTop="8dp"
            android:visibility="visible"
            tools:text="The Legend of Zelda: The Wind Waker" />

    </androidx.cardview.widget.CardView>

    <TextView
        android:id="@+id/text_game_title"
        style="@android:style/TextAppearance.Material.Subhead"
        android:layout_width="115dp"
        android:layout_height="wrap_content"
        android:ellipsize="end"
        android:maxLines="2"
        android:paddingTop="8dp"
        android:textAlignment="viewStart"
        app:layout_constraintEnd_toEndOf="@+id/card_game_art"
        app:layout_constraintStart_toStartOf="@+id/card_game_art"
        app:layout_constraintTop_toBottomOf="@+id/card_game_art"
        tools:text="The Legend of Zelda: The Wind Waker" />

    <TextView
        android:id="@+id/text_game_caption"
        style="@android:style/TextAppearance.Material.Caption"
        android:layout_width="115dp"
        android:layout_height="wrap_content"
        android:ellipsize="end"
        android:lines="1"
        android:maxLines="1"
        android:paddingTop="8dp"
        android:textAlignment="viewStart"
        app:layout_constraintEnd_toEndOf="@+id/card_game_art"
        app:layout_constraintStart_toStartOf="@+id/card_game_art"
        app:layout_constraintTop_toBottomOf="@+id/text_game_title"
        tools:text="Nintendo" />

</androidx.constraintlayout.widget.ConstraintLayout>
