<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:paddingTop="8dp"
    android:paddingBottom="8dp"
    android:paddingStart="16dp"
    android:paddingEnd="16dp"
    android:background="@color/ui_surface"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools">

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

    <TextView
        android:id="@+id/game_name"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:includeFontPadding="false"
        android:layout_marginStart="12dp"
        android:textSize="14sp"
        android:textColor="@color/text_primary"
        app:layout_constraintStart_toEndOf="@id/icon"
        app:layout_constraintTop_toTopOf="@id/icon"
        tools:text="崩坏：星穹铁道" />

    <TextView
        android:id="@+id/subtitle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:paddingTop="2dp"
        android:paddingBottom="2dp"
        android:paddingStart="4dp"
        android:paddingEnd="4dp"
        android:layout_marginStart="4dp"
        tools:text="测试版"
        android:textColor="@color/text_secondary"
        android:textSize="10sp"
        android:background="@drawable/bg_shape_f5_radius_2"
        app:layout_constraintStart_toEndOf="@id/game_name"
        app:layout_constraintTop_toTopOf="@id/game_name"
        app:layout_constraintBottom_toBottomOf="@id/game_name"/>

    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/servers_container"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:padding="12dp"
        android:layout_marginTop="8dp"
        app:layout_constraintTop_toBottomOf="@id/game_name"
        app:layout_constraintStart_toStartOf="@id/game_name"
        android:background="@drawable/bg_shape_f8_radius_8"
        app:layout_constraintEnd_toEndOf="parent">

        <LinearLayout
            android:id="@+id/servers"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            app:layout_constraintEnd_toStartOf="@id/server_count"
            android:orientation="vertical" />

        <TextView
            android:id="@+id/server_count"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="end|bottom"
            android:textSize="11sp"
            android:layout_marginStart="8dp"
            android:textColor="@color/text_tertiary"
            app:layout_constraintStart_toEndOf="@id/servers"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintBottom_toBottomOf="parent"
            android:visibility="gone" />

    </androidx.constraintlayout.widget.ConstraintLayout>

</androidx.constraintlayout.widget.ConstraintLayout>