<?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:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:cardBackgroundColor="@color/ui_surface"
    app:cardCornerRadius="8dp"
    app:cardElevation="0dp">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="160dp"
        android:layout_height="wrap_content">

        <com.facebook.drawee.view.SimpleDraweeView
            android:id="@+id/coverImage"
            style="@style/frescoStyle"
            android:layout_width="0dp"
            android:layout_height="0dp"
            app:layout_constraintDimensionRatio="16:9"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            app:roundBottomEnd="false"
            app:roundBottomStart="false"
            app:roundTopEnd="true"
            app:roundTopStart="true"
            app:roundedCornerRadius="8dp" />

        <View
            android:id="@+id/maskView"
            android:layout_width="0dp"
            android:layout_height="24dp"
            android:background="@color/black_alpha_50"
            app:layout_constraintBottom_toBottomOf="@+id/coverImage"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent" />

        <LinearLayout
            android:id="@+id/eventContainer"
            android:layout_width="wrap_content"
            android:layout_height="0dp"
            android:background="@drawable/bg_game_server_test_label"
            android:gravity="center_vertical"
            android:orientation="horizontal"
            android:paddingStart="8dp"
            android:paddingEnd="18dp"
            app:layout_constraintBottom_toBottomOf="@+id/maskView"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="@+id/maskView">

            <com.facebook.drawee.view.SimpleDraweeView
                android:id="@+id/iconIv"
                style="@style/frescoStyle"
                android:layout_width="12dp"
                android:layout_height="12dp" />

            <TextView
                android:id="@+id/eventNameTv"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="2dp"
                android:includeFontPadding="false"
                android:singleLine="true"
                android:textColor="@color/text_aw_primary"
                android:textSize="@dimen/tag_text_size"
                tools:text="首发" />
        </LinearLayout>

        <TextView
            android:id="@+id/contentTv"
            android:layout_width="0dp"
            android:layout_height="0dp"
            android:layout_marginStart="6dp"
            android:layout_marginEnd="8dp"
            android:ellipsize="end"
            android:gravity="center_vertical|end"
            android:includeFontPadding="false"
            android:lines="1"
            android:textColor="@color/text_aw_primary"
            android:textSize="@dimen/tag_text_size"
            app:layout_constraintBottom_toBottomOf="@+id/maskView"
            app:layout_constraintEnd_toEndOf="@+id/maskView"
            app:layout_constraintStart_toEndOf="@+id/eventContainer"
            app:layout_constraintTop_toTopOf="@+id/maskView"
            tools:text="10/08-10/17" />

        <LinearLayout
            android:id="@+id/gameNameContainer"
            android:layout_width="0dp"
            android:layout_height="30dp"
            android:layout_marginStart="8dp"
            android:layout_marginEnd="16dp"
            android:gravity="center_vertical"
            android:orientation="horizontal"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/coverImage">

            <TextView
                android:id="@+id/gameNameTv"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center_vertical"
                android:includeFontPadding="false"
                android:singleLine="true"
                android:textColor="@color/text_primary"
                android:textSize="@dimen/body_text_size"
                android:textStyle="bold"
                tools:text="游戏名称" />

            <TextView
                android:id="@+id/gameSubtitleTv"
                android:layout_width="wrap_content"
                android:layout_height="14dp"
                android:layout_marginStart="4dp"
                android:background="@drawable/bg_advance_download_game_subtitle"
                android:paddingStart="2dp"
                android:paddingEnd="2dp"
                android:singleLine="true"
                android:textColor="@color/text_secondary"
                android:textSize="@dimen/tag_text_size"
                android:visibility="gone"
                tools:text="副标题副标题副标题副标题"
                tools:visibility="visible" />
        </LinearLayout>
    </androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>