<?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:background="@color/ui_surface"
    android:paddingTop="8dp"
    android:paddingEnd="16dp"
    android:paddingBottom="16dp">

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

    <ImageView
        android:id="@+id/deleteIv"
        android:layout_width="16dp"
        android:layout_height="16dp"
        android:layout_marginStart="16dp"
        android:layout_marginLeft="16dp"
        app:layout_constraintBottom_toBottomOf="@+id/gameIcon"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="@+id/gameIcon"
        app:srcCompat="@drawable/ic_choose_game_delete" />

    <TextView
        android:id="@+id/gameNameTv"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="12dp"
        android:layout_marginLeft="12dp"
        android:layout_marginTop="2dp"
        android:layout_marginEnd="12dp"
        android:layout_marginRight="12dp"
        android:ellipsize="end"
        android:includeFontPadding="false"
        android:maxLines="1"
        android:textColor="@color/text_primary"
        android:textStyle="bold"
        app:layout_constrainedWidth="true"
        app:layout_constraintBottom_toTopOf="@+id/ratingScoreTv"
        app:layout_constraintEnd_toStartOf="@+id/topView"
        app:layout_constraintHorizontal_bias="0"
        app:layout_constraintStart_toEndOf="@+id/gameIcon"
        app:layout_constraintTop_toTopOf="@+id/gameIcon"
        app:layout_constraintVertical_chainStyle="packed"
        tools:text="御龙正版授权" />

    <TextView
        android:id="@+id/ratingScoreTv"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="12dp"
        android:layout_marginTop="6dp"
        android:includeFontPadding="false"
        android:text="推荐指数"
        android:textColor="@color/text_tertiary"
        android:textSize="@dimen/tag_text_size"
        app:layout_constraintBottom_toBottomOf="@+id/gameIcon"
        app:layout_constraintStart_toEndOf="@+id/gameIcon"
        app:layout_constraintTop_toBottomOf="@+id/gameNameTv" />

    <com.gh.gamecenter.common.view.materialratingbar.MaterialRatingBar
        android:id="@+id/ratingScore"
        style="@style/Widget.MaterialRatingBar.RatingBar"
        android:layout_width="68dp"
        android:layout_height="12dp"
        android:layout_gravity="center_vertical"
        android:layout_marginStart="4dp"
        android:layout_marginLeft="4dp"
        android:isIndicator="false"
        android:rating="5"
        android:stepSize="1"
        app:layout_constraintBottom_toBottomOf="@+id/ratingScoreTv"
        app:layout_constraintStart_toEndOf="@+id/ratingScoreTv"
        app:layout_constraintTop_toTopOf="@+id/ratingScoreTv"
        app:mrb_progressBackgroundTint="@color/text_dddddd"
        app:mrb_progressTint="@color/primary_theme"
        app:mrb_secondaryProgressTint="@color/text_dddddd" />

    <ImageView
        android:id="@+id/dragView"
        android:layout_width="20dp"
        android:layout_height="20dp"
        app:layout_constraintBottom_toBottomOf="@+id/ratingScore"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="@+id/gameNameTv"
        app:srcCompat="@drawable/ic_choose_games_drag" />

    <ImageView
        android:id="@+id/topView"
        android:layout_width="20dp"
        android:layout_height="20dp"
        android:layout_marginEnd="20dp"
        android:layout_marginRight="20dp"
        app:layout_constraintBottom_toBottomOf="@+id/ratingScore"
        app:layout_constraintEnd_toStartOf="@+id/dragView"
        app:layout_constraintTop_toTopOf="@+id/gameNameTv"
        app:srcCompat="@drawable/ic_choose_games_top" />

    <LinearLayout
        android:id="@+id/recommendContainer"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingTop="8dp"
        android:paddingLeft="8dp"
        android:paddingRight="8dp"
        android:paddingBottom="6dp"
        android:layout_marginStart="16dp"
        android:layout_marginLeft="16dp"
        android:layout_marginTop="12dp"
        android:background="@drawable/bg_shape_f8_radius_6"
        android:gravity="center_vertical"
        android:orientation="vertical"
        android:paddingStart="8dp"
        android:paddingEnd="8dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/gameIcon">

        <EditText
            android:id="@+id/recommendReasonEt"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@null"
            android:gravity="top|left"
            android:hint="填写你的推荐理由（45个字以内）"
            android:imeOptions="actionDone"
            android:includeFontPadding="false"
            android:textColor="@color/text_primary"
            android:textColorHint="@color/text_tertiary"
            android:textSize="@dimen/secondary_size" />
    </LinearLayout>

</androidx.constraintlayout.widget.ConstraintLayout>