<?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/contentContainer"
    android:layout_width="match_parent"
    android:layout_height="56dp"
    android:paddingTop="8dp"
    android:paddingRight="8dp"
    android:paddingBottom="8dp">

    <TextView
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toLeftOf="@+id/gameIcon"
        android:id="@+id/gameOrder"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="4dp"
        android:layout_marginRight="4dp"
        android:gravity="center"
        android:minWidth="24dp"
        android:minHeight="24dp"
        android:textColor="@color/title"
        android:textSize="12sp" />

    <com.facebook.drawee.view.SimpleDraweeView
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toRightOf="@+id/gameOrder"
        app:layout_constraintRight_toLeftOf="@+id/gameName"
        android:id="@+id/gameIcon"
        style="@style/frescoStyle"
        android:layout_width="40dp"
        android:layout_height="40dp"
        app:roundedCornerRadius="10dp"
        app:viewAspectRatio="1" />

    <com.facebook.drawee.view.SimpleDraweeView
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="@+id/gameIcon"
        app:layout_constraintRight_toRightOf="@+id/gameIcon"
        android:id="@+id/gameIconDecoratorIv"
        android:layout_width="40dp"
        android:layout_height="40dp"
        app:viewAspectRatio="1" />

    <TextView
        app:layout_constraintLeft_toRightOf="@+id/gameIcon"
        app:layout_constraintRight_toLeftOf="@+id/downloadBtn"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toTopOf="@+id/tagContainer"
        app:layout_constraintVertical_chainStyle="packed"
        android:id="@+id/gameName"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginLeft="12dp"
        android:layout_marginRight="8dp"
        android:includeFontPadding="false"
        android:singleLine="true"
        android:textColor="@color/text_primary"
        android:textSize="13sp"
        android:textStyle="bold"
        tools:text="地海争霸：巫妖王再怒" />

    <LinearLayout
        app:layout_constraintTop_toBottomOf="@+id/gameName"
        app:layout_constraintLeft_toRightOf="@+id/gameIcon"
        app:layout_constraintRight_toLeftOf="@+id/downloadBtn"
        app:layout_constraintBottom_toBottomOf="parent"
        android:id="@+id/tagContainer"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        android:layout_marginLeft="12dp"
        android:layout_marginRight="8dp"
        android:orientation="horizontal" />

    <com.gh.gamecenter.feature.view.DownloadButton
        android:id="@+id/downloadBtn"
        android:layout_width="52dp"
        android:layout_height="26dp"
        app:download_button_show_progress="true"
        app:download_button_text_size="12sp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <TextView
        android:id="@+id/multiVersionDownloadTv"
        android:layout_width="wrap_content"
        android:layout_height="26dp"
        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/downloadBtn"
        app:layout_constraintEnd_toEndOf="@+id/downloadBtn"
        app:layout_constraintStart_toStartOf="@+id/downloadBtn"
        app:layout_constraintTop_toTopOf="@+id/downloadBtn" />

    <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_constraintRight_toRightOf="@+id/downloadBtn"
        app:layout_constraintTop_toTopOf="@+id/downloadBtn"
        app:lottie_autoPlay="false"
        app:lottie_loop="true"
        app:lottie_repeatMode="restart" />
</androidx.constraintlayout.widget.ConstraintLayout>
