<?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:paddingLeft="16dp"
    android:paddingRight="16dp">

    <com.facebook.drawee.view.SimpleDraweeView
        android:id="@+id/poster"
        style="@style/frescoStyle"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:scaleType="centerCrop"
        app:actualImageScaleType="centerCrop"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="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_constraintDimensionRatio="h,328:142"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <TextView
        android:id="@+id/nameTv"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="16dp"
        android:layout_marginTop="18dp"
        android:layout_marginEnd="16dp"
        android:includeFontPadding="false"
        android:singleLine="true"
        android:textColor="@color/white"
        android:textSize="16sp"
        android:textStyle="bold"
        app:layout_constraintEnd_toStartOf="@+id/tagIv"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        tools:text="刺激游戏大合集" />

    <ImageView
        android:id="@+id/tagIv"
        android:layout_width="50dp"
        android:layout_height="20dp"
        android:layout_marginTop="18dp"
        android:layout_marginRight="6dp"
        app:layout_constraintRight_toLeftOf="@+id/moreIv"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_goneMarginRight="16dp"
        tools:src="@drawable/ic_chosen" />

    <ImageView
        android:id="@+id/moreIv"
        android:layout_width="24dp"
        android:layout_height="24dp"
        android:layout_marginTop="16dp"
        android:layout_marginRight="6dp"
        android:src="@drawable/ic_game_collection_more"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <com.gh.common.view.GameIconView
        android:id="@+id/gameOne"
        android:layout_width="32dp"
        android:layout_height="32dp"
        android:layout_marginLeft="16dp"
        android:layout_marginTop="12dp"
        app:gameIconBorderColor="@color/white"
        app:gameIconBorderWidth="1dp"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/nameTv" />

    <com.gh.common.view.GameIconView
        android:id="@+id/gameTwo"
        android:layout_width="32dp"
        android:layout_height="32dp"
        android:layout_marginLeft="6dp"
        app:gameIconBorderColor="@color/white"
        app:gameIconBorderWidth="1dp"
        app:layout_constraintBottom_toBottomOf="@+id/gameOne"
        app:layout_constraintLeft_toRightOf="@+id/gameOne"
        app:layout_constraintTop_toTopOf="@+id/gameOne" />

    <com.gh.common.view.GameIconView
        android:id="@+id/gameThree"
        android:layout_width="32dp"
        android:layout_height="32dp"
        android:layout_marginLeft="6dp"
        app:gameIconBorderColor="@color/white"
        app:gameIconBorderWidth="1dp"
        app:layout_constraintBottom_toBottomOf="@+id/gameTwo"
        app:layout_constraintLeft_toRightOf="@+id/gameTwo"
        app:layout_constraintTop_toTopOf="@+id/gameTwo" />

    <TextView
        android:id="@+id/moreNumTv"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="10dp"
        android:includeFontPadding="false"
        android:textColor="@color/white"
        android:textSize="18sp"
        android:textStyle="bold"
        app:layout_constraintBottom_toBottomOf="@+id/gameThree"
        app:layout_constraintLeft_toRightOf="@+id/gameThree"
        app:layout_constraintTop_toTopOf="@+id/gameThree"
        tools:text="+ 25" />

    <com.google.android.flexbox.FlexboxLayout
        android:id="@+id/tagContainer"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginLeft="16dp"
        android:layout_marginTop="6dp"
        android:layout_marginRight="116dp"
        android:layout_marginBottom="50dp"
        app:flexWrap="wrap"
        app:layout_constraintHorizontal_bias="0"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/nameTv" />

    <TextView
        android:id="@+id/timeTv"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="16dp"
        android:layout_marginBottom="20dp"
        android:includeFontPadding="false"
        android:textColor="@color/white"
        android:textSize="10sp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        tools:text="09 - 02" />

    <androidx.cardview.widget.CardView
        android:id="@+id/userIconCv"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="16dp"
        android:layout_marginBottom="16dp"
        app:cardCornerRadius="9dp"
        app:cardElevation="0dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent">

        <com.facebook.drawee.view.SimpleDraweeView
            android:id="@+id/userIcon"
            android:layout_width="18dp"
            android:layout_height="18dp"
            app:roundAsCircle="true" />
    </androidx.cardview.widget.CardView>

    <TextView
        android:id="@+id/userName"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="6dp"
        android:includeFontPadding="false"
        android:textColor="@color/white"
        android:textSize="10sp"
        app:layout_constraintBottom_toBottomOf="@+id/userIconCv"
        app:layout_constraintLeft_toRightOf="@+id/userIconCv"
        app:layout_constraintTop_toTopOf="@+id/userIconCv"
        tools:text="测试用户名" />

    <ImageView
        android:id="@+id/myselfTag"
        android:layout_width="89dp"
        android:layout_height="22dp"
        android:layout_marginLeft="16dp"
        android:layout_marginBottom="16dp"
        android:src="@drawable/pic_game_collection_only_myself"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent" />

    <com.lightgame.view.CheckableImageView
        android:id="@+id/selectIv"
        android:layout_width="20dp"
        android:layout_height="20dp"
        android:layout_gravity="center"
        android:layout_marginLeft="4dp"
        android:layout_marginTop="4dp"
        android:src="@drawable/selector_ic_history"
        android:visibility="gone"
        app:layout_constraintStart_toStartOf="@+id/poster"
        app:layout_constraintTop_toTopOf="@+id/poster" />

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintRight_toRightOf="parent">

        <TextView
            android:id="@+id/vote_count"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginRight="16dp"
            android:paddingTop="20dp"
            android:paddingBottom="20dp"
            android:textSize="12sp"
            android:textColor="@color/text_white"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintRight_toRightOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            tools:text="999" />

        <com.lightgame.view.CheckableImageView
            android:id="@+id/vote_icon"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="8dp"
            android:layout_marginRight="4dp"
            android:src="@drawable/game_collection_vote_selector"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintLeft_toRightOf="@+id/comment_count_container"
            app:layout_constraintRight_toLeftOf="@+id/vote_count"
            app:layout_constraintTop_toTopOf="parent" />

        <View
            android:id="@+id/vote_count_container"
            android:layout_width="0dp"
            android:layout_height="0dp"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintLeft_toRightOf="@+id/comment_count_container"
            app:layout_constraintRight_toRightOf="parent"
            app:layout_constraintTop_toTopOf="parent" />

        <FrameLayout
            android:id="@+id/comment_count_container"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingLeft="16dp"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintRight_toLeftOf="@+id/vote_icon"
            app:layout_constraintTop_toTopOf="parent">

            <TextView
                android:id="@+id/comment_count"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_gravity="center"
                android:drawableLeft="@drawable/game_collection_comment"
                android:drawablePadding="4dp"
                android:gravity="center"
                android:paddingTop="20dp"
                android:paddingBottom="20dp"
                android:textColor="@color/white"
                android:textSize="12sp"
                tools:text="999" />
        </FrameLayout>
    </androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>