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

    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/reuse_listview_item_style">

        <com.gh.gamecenter.feature.view.GameIconView
            android:id="@+id/game_icon"
            android:layout_width="64dp"
            android:layout_height="64dp"
            android:layout_marginStart="12dp"
            android:layout_marginLeft="12dp"
            android:layout_marginTop="12dp"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent" />

        <LinearLayout
            android:id="@+id/gameNameContainer"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginStart="12dp"
            android:layout_marginEnd="16dp"
            android:gravity="center_vertical"
            android:orientation="horizontal"
            app:layout_constraintBottom_toTopOf="@+id/statusTv"
            app:layout_constraintEnd_toStartOf="@+id/download_btn"
            app:layout_constraintStart_toEndOf="@+id/game_icon"
            app:layout_constraintTop_toTopOf="@+id/game_icon"
            app:layout_constraintVertical_chainStyle="packed">

            <TextView
                android:id="@+id/game_name"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:includeFontPadding="false"
                android:singleLine="true"
                android:textColor="@color/text_primary"
                android:textSize="@dimen/secondary_title_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:paddingStart="2dp"
                android:paddingEnd="2dp"
                android:singleLine="true"
                android:textSize="@dimen/tag_text_size"
                android:visibility="gone"
                tools:background="@drawable/bg_advance_download_game_subtitle"
                tools:text="副标题"
                tools:textColor="@color/text_secondary"
                tools:visibility="visible" />
        </LinearLayout>

        <TextView
            android:id="@+id/statusTv"
            android:layout_width="28dp"
            android:layout_height="16dp"
            android:layout_marginStart="12dp"
            android:layout_marginLeft="12dp"
            android:layout_marginTop="8dp"
            android:gravity="center"
            android:includeFontPadding="false"
            android:textSize="@dimen/tag_text_size"
            android:textStyle="bold"
            app:layout_constraintBottom_toBottomOf="@+id/game_icon"
            app:layout_constraintStart_toEndOf="@+id/game_icon"
            app:layout_constraintTop_toBottomOf="@+id/gameNameContainer"
            tools:text="预约" />

        <TextView
            android:id="@+id/game_brief"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginStart="4dp"
            android:layout_marginLeft="4dp"
            android:layout_marginEnd="16dp"
            android:layout_marginRight="16dp"
            android:ellipsize="end"
            android:includeFontPadding="false"
            android:lines="1"
            android:textColor="@color/text_secondary"
            android:textSize="@dimen/little_secondary_size"
            app:layout_constraintBottom_toBottomOf="@+id/statusTv"
            app:layout_constraintEnd_toStartOf="@+id/download_btn"
            app:layout_constraintHorizontal_bias="0"
            app:layout_constraintStart_toEndOf="@+id/statusTv"
            app:layout_constraintTop_toTopOf="@+id/statusTv"
            tools:text="今天 10:00 开启测试" />

        <com.gh.gamecenter.feature.view.DownloadButton
            android:id="@+id/download_btn"
            android:layout_width="56dp"
            android:layout_height="28dp"
            android:layout_marginEnd="12dp"
            android:layout_marginRight="12dp"
            app:download_button_show_progress="true"
            app:download_button_text_size="12sp"
            app:layout_constraintBottom_toBottomOf="@+id/game_icon"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toTopOf="@+id/game_icon" />

        <TextView
            android:id="@+id/multiVersionDownloadTv"
            android:layout_width="wrap_content"
            android:layout_height="28dp"
            android:drawablePadding="2dp"
            android:gravity="center"
            android:text="展开"
            android:textColor="@color/white"
            android:textSize="@dimen/secondary_size"
            android:visibility="gone"
            app:drawableEndCompat="@drawable/ic_jump_universal"
            app:layout_constraintBottom_toBottomOf="@+id/download_btn"
            app:layout_constraintEnd_toEndOf="@+id/download_btn"
            app:layout_constraintStart_toStartOf="@+id/download_btn"
            app:layout_constraintTop_toTopOf="@+id/download_btn"
            tools:visibility="visible" />

        <com.airbnb.lottie.LottieAnimationView
            android:id="@+id/downloadTipsLottie"
            android:layout_width="16dp"
            android:layout_height="16dp"
            android:layout_marginTop="-8dp"
            android:visibility="gone"
            app:layout_constraintEnd_toEndOf="@+id/download_btn"
            app:layout_constraintTop_toTopOf="@+id/download_btn"
            app:lottie_autoPlay="false"
            app:lottie_loop="true"
            app:lottie_repeatMode="restart" />

        <androidx.constraintlayout.widget.ConstraintLayout
            android:id="@+id/infoContainer"
            android:layout_width="0dp"
            android:layout_height="40dp"
            android:background="@drawable/reuse_listview_item_style"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="@+id/cardDashLineView">

            <TextView
                android:id="@+id/infoTv"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_marginStart="12dp"
                android:layout_marginLeft="12dp"
                android:layout_marginEnd="4dp"
                android:drawablePadding="4dp"
                android:ellipsize="end"
                android:gravity="center_vertical"
                android:includeFontPadding="false"
                android:lines="1"
                android:textColor="@color/text_secondary"
                android:textSize="@dimen/secondary_size"
                app:drawableStartCompat="@drawable/ic_function_article"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toStartOf="@+id/arrowIv"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent"
                tools:text="钓鱼新手教程，开始成为欢乐钓鱼大师" />

            <ImageView
                android:id="@+id/arrowIv"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginEnd="12dp"
                android:layout_marginRight="12dp"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintTop_toTopOf="parent"
                app:srcCompat="@drawable/ic_auxiliary_arrow_right_8" />
        </androidx.constraintlayout.widget.ConstraintLayout>

        <androidx.constraintlayout.widget.Group
            android:id="@+id/infoGroup"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:visibility="gone"
            app:constraint_referenced_ids="infoContainer,leftCardDividerIv,rightCardDividerIv,cardDashLineView"
            tools:visibility="visible" />

        <ImageView
            android:id="@+id/leftCardDividerIv"
            android:layout_width="6dp"
            android:layout_height="12dp"
            android:layout_marginTop="6dp"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/game_icon"
            app:srcCompat="@drawable/card_divider_left" />

        <com.gh.gamecenter.common.view.DashLineView
            android:id="@+id/cardDashLineView"
            android:layout_width="0dp"
            android:layout_height="1dp"
            app:dash_gap_width="4dp"
            app:dash_line_color="@color/ui_divider"
            app:dash_line_stroke_width="1dp"
            app:dash_radius="0.5dp"
            app:dash_width="4dp"
            app:layout_constraintBottom_toBottomOf="@+id/leftCardDividerIv"
            app:layout_constraintEnd_toStartOf="@+id/rightCardDividerIv"
            app:layout_constraintStart_toEndOf="@+id/leftCardDividerIv"
            app:layout_constraintTop_toTopOf="@+id/leftCardDividerIv" />

        <ImageView
            android:id="@+id/rightCardDividerIv"
            android:layout_width="6dp"
            android:layout_height="12dp"
            android:layout_marginTop="6dp"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/game_icon"
            app:srcCompat="@drawable/card_divider_right" />

    </androidx.constraintlayout.widget.ConstraintLayout>

</androidx.cardview.widget.CardView>