<?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/root"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="8dp"
    android:layout_marginStart="8dp"
    android:orientation="vertical"
    android:background="@drawable/background_channel_round"
    android:padding="15dp"
    android:layout_gravity="center_horizontal">

    <TextView
        android:id="@+id/text_channel_name"
        android:layout_width="match_parent"
        android:layout_height="40dp"
        android:textAlignment="center"
        tools:text="This is a very long channel name that is supposed to be even longer"
        android:maxLines="2"
        android:ellipsize="end"
        android:fontFamily="@font/inter_medium"
        android:textSize="16dp"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent" />

    <com.futo.platformplayer.views.others.CreatorThumbnail
        android:id="@+id/creator_thumbnail"
        android:layout_width="61dp"
        android:layout_height="61dp"
        android:layout_marginTop="10dp"
        android:contentDescription="@string/channel_image"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/text_channel_name"
        tools:src="@drawable/placeholder_channel_thumbnail" />

    <TextView
        android:id="@+id/text_channel_metadata"
        android:layout_width="match_parent"
        android:layout_height="14dp"
        android:textAlignment="center"
        android:fontFamily="@font/inter_extra_light"
        android:textSize="10dp"
        tools:text="1.76M subscribers"
        android:maxLines="1"
        android:ellipsize="end"
        android:layout_marginTop="10dp"
        app:layout_constraintTop_toBottomOf="@id/creator_thumbnail"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent" />

    <com.futo.platformplayer.views.subscriptions.SubscribeButton
        android:id="@+id/button_subscribe"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:contentDescription="@string/cd_button_subscribe"
        android:layout_marginTop="10dp"
        app:layout_constraintTop_toBottomOf="@id/text_channel_metadata"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent" />

    <com.futo.platformplayer.views.platform.PlatformIndicator
        android:id="@+id/platform_indicator"
        android:layout_width="24dp"
        android:layout_height="24dp"
        android:contentDescription="@string/cd_platform_indicator"
        android:layout_marginTop="18dp"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@id/button_subscribe"/>

</androidx.constraintlayout.widget.ConstraintLayout>