<?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="142dp"
    android:layout_marginStart="16dp"
    android:layout_marginEnd="16dp">

    <com.facebook.drawee.view.SimpleDraweeView
        android:id="@+id/poster"
        style="@style/frescoStyle"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:scaleType="centerCrop"
        app:actualImageScaleType="centerCrop"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:roundedCornerRadius="8dp"
        app:viewAspectRatio="2.31" />

    <View
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:background="@drawable/game_collection_poster_mask"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/content"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent">

        <TextView
            android:id="@+id/titleTv"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="16dp"
            android:layout_marginLeft="16dp"
            android:layout_marginTop="18dp"
            android:ellipsize="end"
            android:lines="1"
            android:textColor="@color/white"
            android:textSize="@dimen/secondary_title_text_size"
            android:textStyle="bold"
            app:layout_constrainedWidth="true"
            app:layout_constraintEnd_toStartOf="@+id/adLabelTv"
            app:layout_constraintHorizontal_bias="0"
            app:layout_constraintHorizontal_chainStyle="packed"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            app:layout_constraintVertical_chainStyle="packed"
            app:layout_goneMarginEnd="16dp"
            tools:text="刺激游戏大合集刺激游戏大合集刺激游戏大合集" />

        <TextView
            android:id="@+id/adLabelTv"
            android:layout_width="21dp"
            android:layout_height="14dp"
            android:layout_marginStart="4dp"
            android:layout_marginLeft="4dp"
            android:layout_marginEnd="16dp"
            android:layout_marginRight="16dp"
            android:background="@drawable/bg_ad_label"
            android:gravity="center"
            android:text="AD"
            android:textColor="@color/white"
            android:textSize="@dimen/tag_text_size"
            android:visibility="gone"
            app:layout_constraintBottom_toBottomOf="@+id/titleTv"
            app:layout_constraintEnd_toStartOf="@+id/rightContainer"
            app:layout_constraintHorizontal_bias="0"
            app:layout_constraintStart_toEndOf="@+id/titleTv"
            app:layout_constraintTop_toTopOf="@+id/titleTv" />

        <com.gh.gamecenter.feature.view.GameIconView
            android:id="@+id/iconIvOne"
            android:layout_width="30dp"
            android:layout_height="30dp"
            android:layout_marginStart="16dp"
            android:layout_marginLeft="16dp"
            android:layout_marginTop="13dp"
            app:gameIconBorderColor="@color/white"
            app:gameIconBorderWidth="1dp"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/titleTv" />

        <com.gh.gamecenter.feature.view.GameIconView
            android:id="@+id/iconIvTwo"
            android:layout_width="30dp"
            android:layout_height="30dp"
            android:layout_marginStart="8dp"
            android:layout_marginLeft="8dp"
            app:gameIconBorderColor="@color/white"
            app:gameIconBorderWidth="1dp"
            app:layout_constraintBottom_toBottomOf="@+id/iconIvOne"
            app:layout_constraintStart_toEndOf="@+id/iconIvOne"
            app:layout_constraintTop_toTopOf="@+id/iconIvOne" />

        <com.gh.gamecenter.feature.view.GameIconView
            android:id="@+id/iconIvThree"
            android:layout_width="30dp"
            android:layout_height="30dp"
            android:layout_marginStart="8dp"
            android:layout_marginLeft="8dp"
            app:gameIconBorderColor="@color/white"
            app:gameIconBorderWidth="1dp"
            app:layout_constraintBottom_toBottomOf="@+id/iconIvTwo"
            app:layout_constraintStart_toEndOf="@+id/iconIvTwo"
            app:layout_constraintTop_toTopOf="@+id/iconIvTwo" />

        <TextView
            android:id="@+id/countTv"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="9dp"
            android:layout_marginLeft="9dp"
            android:textColor="@color/white"
            android:textSize="@dimen/primary_title_text_size"
            android:textStyle="bold"
            app:layout_constraintBottom_toBottomOf="@+id/iconIvThree"
            app:layout_constraintStart_toEndOf="@+id/iconIvThree"
            app:layout_constraintTop_toTopOf="@+id/iconIvThree"
            tools:text="+ 25" />

        <LinearLayout
            android:id="@+id/rightContainer"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="18dp"
            android:layout_marginEnd="16dp"
            android:layout_marginRight="16dp"
            android:gravity="end"
            android:orientation="vertical"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toTopOf="parent">

            <ImageView
                android:id="@+id/stampIv"
                android:layout_width="50dp"
                android:layout_height="20dp"
                android:layout_marginBottom="8dp"
                android:background="@drawable/ic_official" />

            <LinearLayout
                android:id="@+id/hotContainer"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@drawable/bg_game_collection_hot_container"
                android:gravity="center"
                android:orientation="horizontal"
                android:paddingStart="4dp"
                android:paddingTop="2dp"
                android:paddingEnd="6dp"
                android:paddingBottom="2dp"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintTop_toBottomOf="@+id/tagIv">

                <ImageView
                    android:id="@+id/hotIv"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    app:srcCompat="@drawable/ic_game_collection_hot" />

                <TextView
                    android:id="@+id/hotTv"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginStart="4dp"
                    android:textColor="@color/white"
                    android:textSize="@dimen/secondary_size"
                    tools:text="999" />

            </LinearLayout>
        </LinearLayout>

        <LinearLayout
            android:id="@+id/userContainer"
            android:layout_width="0dp"
            android:layout_height="20dp"
            android:layout_marginStart="16dp"
            android:layout_marginEnd="16dp"
            android:layout_marginBottom="16dp"
            android:background="@drawable/bg_game_collection_user_container"
            android:gravity="center_vertical"
            android:orientation="horizontal"
            android:paddingStart="1dp"
            android:paddingTop="1dp"
            android:paddingEnd="6dp"
            android:paddingBottom="1dp"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent">

            <androidx.cardview.widget.CardView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                app:cardElevation="0dp"
                app:cardCornerRadius="9dp">

                <com.facebook.drawee.view.SimpleDraweeView
                    android:id="@+id/userIv"
                    style="@style/frescoCircleStyle"
                    android:layout_width="18dp"
                    android:layout_height="18dp" />
            </androidx.cardview.widget.CardView>

            <TextView
                android:id="@+id/userTv"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="3dp"
                android:ellipsize="end"
                android:maxWidth="61dp"
                android:singleLine="true"
                android:textColor="@color/white_alpha_80"
                android:textSize="@dimen/tag_text_size"
                tools:text="测试用户名" />

        </LinearLayout>

        <LinearLayout
            android:id="@+id/tagContainer"
            android:layout_width="0dp"
            android:layout_height="18dp"
            android:layout_marginStart="16dp"
            android:layout_marginEnd="7dp"
            android:layout_marginRight="7dp"
            android:gravity="center_vertical"
            android:orientation="horizontal"
            app:layout_constraintBottom_toBottomOf="@+id/userContainer"
            app:layout_constraintEnd_toStartOf="@+id/userContainer"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="@+id/userContainer" />

        <LinearLayout
            android:id="@+id/playedGamesContainer"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginStart="16dp"
            android:gravity="center_vertical"
            android:orientation="horizontal"
            android:visibility="gone"
            app:layout_constraintBottom_toBottomOf="@+id/userContainer"
            app:layout_constraintEnd_toStartOf="@+id/userContainer"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="@+id/userContainer">

            <ProgressBar
                android:id="@+id/playedGameProgress"
                style="@style/Widget.AppCompat.ProgressBar.Horizontal"
                android:layout_width="100dp"
                android:layout_height="10dp"
                android:progressDrawable="@drawable/progressbar_game_collection" />

            <TextView
                android:id="@+id/playedGameTv"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginStart="8dp"
                android:lines="1"
                android:textColor="@color/white"
                android:textSize="@dimen/tag_text_size" />

        </LinearLayout>
    </androidx.constraintlayout.widget.ConstraintLayout>

</androidx.constraintlayout.widget.ConstraintLayout>