<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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/itemRoot"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="?attr/selectableItemBackground"
                android:clickable="true"
                android:focusable="true"
                android:paddingTop="12dp"
                android:paddingBottom="6dp"
                android:paddingHorizontal="12dp"
>

    <org.schabi.newpipe.views.DynamicGridImageView
            android:id="@+id/itemThumbnailView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentTop="true"
            android:layout_centerHorizontal="true"
            android:scaleType="centerCrop"
            android:src="@drawable/dummy_thumbnail_playlist"
            tools:ignore="RtlHardcoded"/>

    <org.schabi.newpipe.views.NewPipeTextView
            android:id="@+id/itemStreamCountView"
            android:layout_width="@dimen/playlist_item_thumbnail_stream_count_width"
            android:layout_height="0dp"
            android:background="@drawable/playlist_count_overlay_right_rounded"
            android:gravity="center"
            android:paddingTop="16dp"
            android:paddingBottom="14dp"
            android:textAppearance="?android:attr/textAppearanceSmall"
            android:textColor="@color/duration_text_color"
            android:textSize="@dimen/video_item_search_duration_text_size"
            android:textStyle="bold"
            app:drawableTint="@color/duration_text_color"
            app:drawableTopCompat="@drawable/ic_playlist_play"
            android:layout_alignTop="@id/itemThumbnailView"
            android:layout_alignRight="@id/itemThumbnailView"
            android:layout_alignBottom="@id/itemThumbnailView"
            tools:ignore="RtlHardcoded"
            tools:text="314159"/>

    <org.schabi.newpipe.views.NewPipeTextView
            android:id="@+id/itemTitleView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@id/itemThumbnailView"
            android:layout_alignLeft="@id/itemThumbnailView"
            android:layout_alignRight="@id/itemThumbnailView"
            android:layout_marginTop="8dp"
            android:ellipsize="end"
            android:maxLines="2"
            android:textAppearance="?android:attr/textAppearanceLarge"
            android:textSize="@dimen/video_item_search_title_text_size"
            tools:ignore="RtlHardcoded"
            tools:text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tristique vitae sem vitae blanditLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsum"/>

    <org.schabi.newpipe.views.NewPipeTextView
            android:id="@+id/itemUploaderView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@+id/itemTitleView"
            android:layout_alignLeft="@id/itemThumbnailView"
            android:layout_toLeftOf="@id/itemHandle"
            android:layout_marginEnd="4dp"
            android:lines="1"
            android:textAppearance="?android:attr/textAppearanceSmall"
            android:textSize="@dimen/video_item_search_uploader_text_size"
            tools:ignore="RtlHardcoded"
            tools:text="Uploader"/>

    <ImageView
            android:id="@+id/itemHandle"
            android:layout_width="wrap_content"
            android:layout_height="32dp"
            android:contentDescription="@string/detail_drag_description"
            android:paddingStart="2dp"
            android:scaleType="center"
            android:visibility="gone"
            android:layout_alignBottom="@id/itemUploaderView"
            android:layout_alignRight="@id/itemThumbnailView"
            android:layout_alignTop="@id/itemUploaderView"
            app:srcCompat="@drawable/ic_drag_handle"
            tools:ignore="RtlHardcoded,RtlSymmetry"/>
</RelativeLayout>
