<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView 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:id="@+id/posterCardView"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:cardCornerRadius="8dp"
    app:cardBackgroundColor="@color/transparent"
    app:cardElevation="0dp">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/bg_shape_space_radius_8"
        android:paddingBottom="12dp">

        <com.facebook.drawee.view.SimpleDraweeView
            android:id="@+id/poster"
            style="@style/frescoStyle"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            app:roundTopLeft="true"
            app:roundTopRight="true"
            app:roundBottomLeft="false"
            app:roundBottomRight="false"
            app:roundedCornerRadius="8dp"
            app:viewAspectRatio="1.78"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintRight_toRightOf="parent"
            app:layout_constraintTop_toTopOf="parent" />

        <LinearLayout
            android:id="@+id/gameNameContainer"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginLeft="12dp"
            android:layout_marginTop="12dp"
            android:layout_marginRight="12dp"
            android:gravity="center_vertical"
            android:orientation="horizontal"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintRight_toRightOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/poster">

            <TextView
                android:id="@+id/gameName"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:ellipsize="end"
                android:includeFontPadding="false"
                android:singleLine="true"
                android:textColor="@color/text_title"
                android:textSize="14sp"
                tools:text="火炬之光：无限" />

            <TextView
                android:id="@+id/gameSubtitle"
                android:layout_width="wrap_content"
                android:layout_height="14dp"
                android:layout_marginLeft="4dp"
                android:background="@drawable/bg_advance_download_game_subtitle"
                android:paddingLeft="2dp"
                android:paddingRight="2dp"
                android:singleLine="true"
                android:textColor="@color/text_subtitle"
                android:textSize="@dimen/tag_text_size"
                android:visibility="gone"
                tools:text="副标题"
                tools:visibility="visible" />
        </LinearLayout>

        <TextView
            android:id="@+id/brief"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginTop="4dp"
            android:layout_marginLeft="12dp"
            android:layout_marginRight="12dp"
            android:singleLine="true"
            android:includeFontPadding="false"
            android:ellipsize="end"
            android:textColor="@color/text_subtitleDesc"
            android:textSize="12sp"
            tools:text="无体力无PVP，爽快战斗纯正打宝，即刻预约"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintRight_toRightOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/gameNameContainer"
            app:layout_constraintHorizontal_bias="0" />

    </androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>