<?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="115dp"
    android:orientation="horizontal">

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="1px"
        app:layout_constraintTop_toTopOf="parent"
        android:background="#474747" />

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:orientation="vertical"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toStartOf="@id/image_image">

        <ImageView
            android:id="@+id/image_author_thumbnail"
            android:layout_width="28dp"
            android:layout_height="28dp"
            android:background="@drawable/rounded_outline"
            android:clipToOutline="true"
            android:contentDescription="@string/channel_image"
            android:layout_marginTop="8dp"
            android:layout_marginStart="8dp"
            android:layout_marginEnd="8dp"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            tools:src="@drawable/placeholder_channel_thumbnail" />

        <TextView
            android:id="@+id/text_author_name"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginStart="4dp"
            android:layout_marginEnd="8dp"
            android:layout_weight="1"
            android:ellipsize="end"
            android:fontFamily="@font/inter_extra_light"
            android:gravity="center_vertical"
            android:maxLines="1"
            android:textColor="@color/gray_e0"
            android:textSize="10dp"
            app:layout_constrainedWidth="true"
            app:layout_constraintHorizontal_bias="0"
            app:layout_constraintHorizontal_chainStyle="packed"
            app:layout_constraintLeft_toRightOf="@id/image_author_thumbnail"
            app:layout_constraintRight_toLeftOf="@id/platform_indicator"
            app:layout_constraintTop_toTopOf="@id/image_author_thumbnail"
            tools:text="Two Minute Papers" />

        <TextView
            android:id="@+id/text_metadata"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:maxLines="1"
            android:gravity="center_vertical"
            android:textSize="10dp"
            android:ellipsize="end"
            android:textColor="@color/gray_e0"
            android:fontFamily="@font/inter_extra_light"
            tools:text="1 day ago"
            app:layout_constraintLeft_toRightOf="@id/image_author_thumbnail"
            app:layout_constraintTop_toBottomOf="@id/text_author_name"
            app:layout_constraintRight_toLeftOf="@id/platform_indicator"
            android:layout_marginStart="4dp"
            android:layout_marginEnd="8dp" />

        <com.futo.platformplayer.views.platform.PlatformIndicator
            android:id="@+id/platform_indicator"
            android:layout_width="20dp"
            android:layout_height="20dp"
            android:contentDescription="@string/cd_platform_indicator"
            android:scaleType="centerInside"
            tools:src="@drawable/ic_peertube"
            android:layout_marginEnd="8dp"
            app:layout_constraintTop_toTopOf="@id/image_author_thumbnail"
            app:layout_constraintRight_toRightOf="parent"
            app:layout_constraintBottom_toBottomOf="@id/image_author_thumbnail" />

        <TextView
            android:id="@+id/text_title"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            tools:text="To be more specific, the negative impact of the vital decisions will possibly result in The Trace of Dependent Customization (Mohamed Stiles in The Book of the Software Engineering."
            android:textSize="11sp"
            android:fontFamily="@font/inter_semibold"
            android:textColor="@color/white"
            android:layout_marginTop="4dp"
            android:gravity="bottom"
            android:layout_marginStart="8dp"
            android:layout_marginEnd="8dp"
            android:ellipsize="end"
            android:maxLines="2"
            app:layout_constraintTop_toBottomOf="@id/image_author_thumbnail"
            app:layout_constraintBottom_toTopOf="@id/text_description"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintRight_toRightOf="parent" />

        <TextView
            android:id="@+id/text_description"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            tools:text="To be more specific, the negative impact of the vital decisions will possibly result in The Trace of Dependent Customization (Mohamed Stiles in The Book of the Software Engineering."
            android:textSize="11sp"
            android:fontFamily="@font/inter_regular"
            android:textColor="@color/white"
            android:layout_marginTop="2dp"
            android:gravity="top"
            android:layout_marginStart="8dp"
            android:layout_marginEnd="8dp"
            android:layout_marginBottom="8dp"
            android:ellipsize="end"
            app:layout_constraintTop_toBottomOf="@id/text_title"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintRight_toRightOf="parent" />

        <View
            android:layout_width="0dp"
            android:layout_height="25dp"
            android:background="@drawable/background_fade"
            app:layout_constraintBottom_toBottomOf="@id/text_description"
            app:layout_constraintLeft_toLeftOf="@id/text_description"
            app:layout_constraintRight_toRightOf="@id/text_description" />

    </androidx.constraintlayout.widget.ConstraintLayout>

    <com.google.android.material.imageview.ShapeableImageView
        android:id="@+id/image_image"
        android:layout_height="match_parent"
        android:layout_width="wrap_content"
        android:scaleType="centerCrop"
        android:adjustViewBounds="true"
        android:layout_gravity="center_vertical"
        app:shapeAppearanceOverlay="@style/roundedCorners_4dp"
        app:srcCompat="@drawable/placeholder_video_thumbnail"
        android:background="@drawable/video_thumbnail_outline"
        android:layout_marginEnd="8dp"
        android:layout_marginBottom="8dp"
        android:layout_marginTop="8dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintWidth_max="170dp" />

    <LinearLayout
        android:id="@+id/layout_image_count"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        app:layout_constraintEnd_toEndOf="@id/image_image"
        app:layout_constraintBottom_toBottomOf="@id/image_image"
        android:padding="3dp"
        android:background="@drawable/background_pill_transparent"
        android:paddingStart="8dp"
        android:paddingEnd="8dp"
        android:gravity="center_vertical"
        android:layout_marginEnd="4dp"
        android:layout_marginBottom="4dp">

        <ImageView
            android:layout_width="15dp"
            android:layout_height="15dp"
            app:srcCompat="@drawable/ic_image" />

        <TextView
            android:id="@+id/text_image_count"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:fontFamily="@font/inter_light"
            android:textSize="11dp"
            android:textColor="@color/white"
            tools:text="3 Images"
            android:layout_marginStart="2dp"/>
    </LinearLayout>

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="1px"
        app:layout_constraintBottom_toBottomOf="parent"
        android:background="#474747" />
</androidx.constraintlayout.widget.ConstraintLayout>