<?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:id="@+id/cl_root"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:paddingBottom="16dp">

    <View
        android:id="@+id/placeholder"
        android:layout_width="280dp"
        android:layout_height="0dp"
        app:layout_constraintDimensionRatio="w,9:16"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <com.facebook.drawee.view.SimpleDraweeView
        android:id="@+id/game_image"
        android:layout_width="280dp"
        android:layout_height="0dp"
        app:layout_constraintDimensionRatio="w,9:16"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:roundedCornerRadius="@dimen/home_large_image_radius"
        tools:background="@color/placeholder_bg" />

    <com.gh.gamecenter.home.video.AutomaticVideoView
        android:id="@+id/autoVideoView"
        android:layout_width="280dp"
        android:layout_height="0dp"
        android:visibility="gone"
        app:avBottomRightAngle="false"
        app:layout_constraintDimensionRatio="w,9:16"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        tools:visibility="visible" />

    <com.gh.gamecenter.feature.view.GameIconView
        android:id="@+id/game_icon"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_marginTop="8dp"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/placeholder" />

    <LinearLayout
        android:id="@+id/gameNameContainer"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginTop="2dp"
        android:layout_marginEnd="16dp"
        android:gravity="center_vertical"
        android:orientation="horizontal"
        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/primary_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>

    <com.gh.gamecenter.common.view.GameTagContainerView
        android:id="@+id/game_tags"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginBottom="2dp"
        app:layout_constraintBottom_toBottomOf="@+id/game_icon"
        app:layout_constraintStart_toEndOf="@+id/game_play_count" />

    <TextView
        android:id="@+id/game_play_count"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginBottom="2dp"
        android:visibility="gone"
        android:includeFontPadding="false"
        app:layout_constraintBottom_toBottomOf="@+id/game_icon"
        app:layout_constraintStart_toEndOf="@+id/game_icon"
        app:layout_constraintEnd_toStartOf="@id/game_tags"
        android:textSize="11sp"
        android:gravity="center"
        android:textColor="@color/text_tertiary"
        tools:text="999.9万人玩过" />

    <com.gh.gamecenter.feature.view.DownloadButton
        android:id="@+id/download_btn"
        android:layout_width="56dp"
        android:layout_height="28dp"
        android:layout_marginStart="8dp"
        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>
