2017-08-29 00:38:37 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-03-31 09:43:10 +00:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2020-10-09 18:24:02 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2017-08-29 00:38:37 +00:00
|
|
|
android:id="@+id/itemRoot"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="48dp"
|
2020-03-25 15:23:47 +00:00
|
|
|
android:background="?attr/selector"
|
2017-08-29 00:38:37 +00:00
|
|
|
android:clickable="true"
|
2017-10-03 06:38:46 +00:00
|
|
|
android:focusable="true"
|
2020-10-09 18:24:02 +00:00
|
|
|
android:foreground="?attr/selectableItemBackground"
|
2017-10-31 03:58:02 +00:00
|
|
|
android:paddingTop="6dp"
|
|
|
|
android:paddingBottom="6dp">
|
|
|
|
|
2020-10-01 00:10:42 +00:00
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
2017-10-31 03:58:02 +00:00
|
|
|
android:id="@+id/itemSelected"
|
|
|
|
android:layout_width="10dp"
|
|
|
|
android:layout_height="10dp"
|
|
|
|
android:layout_alignParentStart="true"
|
2020-10-09 18:24:02 +00:00
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_centerInParent="true"
|
2017-10-31 03:58:02 +00:00
|
|
|
android:layout_marginLeft="2dp"
|
|
|
|
android:layout_marginRight="2dp"
|
|
|
|
android:scaleType="fitXY"
|
2020-03-31 09:43:10 +00:00
|
|
|
app:srcCompat="?attr/ic_selected"
|
2020-10-09 18:24:02 +00:00
|
|
|
tools:ignore="ContentDescription,RtlHardcoded" />
|
2017-08-29 00:38:37 +00:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/itemThumbnailView"
|
2017-10-28 17:08:01 +00:00
|
|
|
android:layout_width="@dimen/play_queue_thumbnail_width"
|
|
|
|
android:layout_height="@dimen/play_queue_thumbnail_height"
|
2017-08-29 00:38:37 +00:00
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_marginRight="@dimen/video_item_search_image_right_margin"
|
2020-10-09 18:24:02 +00:00
|
|
|
android:layout_toEndOf="@+id/itemSelected"
|
|
|
|
android:layout_toRightOf="@+id/itemSelected"
|
2017-08-29 00:38:37 +00:00
|
|
|
android:contentDescription="@string/list_thumbnail_view_description"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:src="@drawable/dummy_thumbnail"
|
2020-10-09 18:24:02 +00:00
|
|
|
tools:ignore="RtlHardcoded" />
|
2017-08-29 00:38:37 +00:00
|
|
|
|
2020-10-01 00:10:42 +00:00
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
2017-10-09 05:43:07 +00:00
|
|
|
android:id="@+id/itemHandle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_alignParentRight="true"
|
2020-10-09 18:24:02 +00:00
|
|
|
android:layout_gravity="center_vertical"
|
2017-10-31 03:58:02 +00:00
|
|
|
android:padding="@dimen/video_item_search_image_right_margin"
|
2017-10-09 05:43:07 +00:00
|
|
|
android:scaleType="center"
|
2021-03-27 14:45:49 +00:00
|
|
|
app:srcCompat="@drawable/ic_drag_handle"
|
2020-10-09 18:24:02 +00:00
|
|
|
tools:ignore="ContentDescription,RtlHardcoded" />
|
2017-10-09 05:43:07 +00:00
|
|
|
|
2017-08-29 00:38:37 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/itemDurationView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignRight="@id/itemThumbnailView"
|
2020-10-09 18:24:02 +00:00
|
|
|
android:layout_alignBottom="@id/itemThumbnailView"
|
2017-08-29 00:38:37 +00:00
|
|
|
android:layout_marginRight="@dimen/video_item_search_duration_margin"
|
2020-10-09 18:24:02 +00:00
|
|
|
android:layout_marginBottom="@dimen/video_item_search_duration_margin"
|
2017-08-29 00:38:37 +00:00
|
|
|
android:background="@color/duration_background_color"
|
|
|
|
android:paddingLeft="@dimen/video_item_search_duration_horizontal_padding"
|
|
|
|
android:paddingTop="@dimen/video_item_search_duration_vertical_padding"
|
2020-10-09 18:24:02 +00:00
|
|
|
android:paddingRight="@dimen/video_item_search_duration_horizontal_padding"
|
|
|
|
android:paddingBottom="@dimen/video_item_search_duration_vertical_padding"
|
2017-08-29 00:38:37 +00:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="@color/duration_text_color"
|
|
|
|
android:textSize="@dimen/video_item_search_duration_text_size"
|
|
|
|
tools:ignore="RtlHardcoded"
|
2020-10-09 18:24:02 +00:00
|
|
|
tools:text="1:09:10" />
|
2017-08-29 00:38:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/itemVideoTitleView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentTop="true"
|
2017-10-09 05:43:07 +00:00
|
|
|
android:layout_toStartOf="@id/itemHandle"
|
2020-10-09 18:24:02 +00:00
|
|
|
android:layout_toLeftOf="@id/itemHandle"
|
|
|
|
android:layout_toEndOf="@id/itemThumbnailView"
|
|
|
|
android:layout_toRightOf="@id/itemThumbnailView"
|
2017-08-29 00:38:37 +00:00
|
|
|
android:ellipsize="end"
|
2017-11-11 22:47:34 +00:00
|
|
|
android:singleLine="true"
|
2021-03-28 18:38:15 +00:00
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
2017-08-29 00:38:37 +00:00
|
|
|
android:textSize="@dimen/video_item_search_title_text_size"
|
2020-10-09 18:24:02 +00:00
|
|
|
tools:text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. " />
|
2017-08-29 00:38:37 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/itemAdditionalDetails"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentBottom="true"
|
2017-10-09 05:43:07 +00:00
|
|
|
android:layout_toStartOf="@id/itemHandle"
|
2020-10-09 18:24:02 +00:00
|
|
|
android:layout_toLeftOf="@id/itemHandle"
|
|
|
|
android:layout_toEndOf="@id/itemThumbnailView"
|
|
|
|
android:layout_toRightOf="@id/itemThumbnailView"
|
2017-11-11 22:47:34 +00:00
|
|
|
android:ellipsize="end"
|
|
|
|
android:singleLine="true"
|
2021-03-28 18:38:15 +00:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
2017-08-29 00:38:37 +00:00
|
|
|
android:textSize="@dimen/video_item_search_upload_date_text_size"
|
2020-10-09 18:24:02 +00:00
|
|
|
tools:text="Uploader" />
|
2017-10-09 05:43:07 +00:00
|
|
|
|
2020-10-09 18:24:02 +00:00
|
|
|
</RelativeLayout>
|