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"
|
2017-08-29 00:38:37 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2020-03-31 09:43:10 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2017-08-29 00:38:37 +00:00
|
|
|
android:id="@+id/itemRoot"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="48dp"
|
2017-10-31 03:58:02 +00:00
|
|
|
android:foreground="?attr/selectableItemBackground"
|
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"
|
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_centerInParent="true"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_marginLeft="2dp"
|
|
|
|
android:layout_marginRight="2dp"
|
|
|
|
android:scaleType="fitXY"
|
2020-03-31 09:43:10 +00:00
|
|
|
app:srcCompat="?attr/ic_selected"
|
2017-10-31 03:58: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-10-31 03:58:02 +00:00
|
|
|
android:layout_toRightOf="@+id/itemSelected"
|
|
|
|
android:layout_toEndOf="@+id/itemSelected"
|
2017-08-29 00:38:37 +00:00
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_marginRight="@dimen/video_item_search_image_right_margin"
|
|
|
|
android:contentDescription="@string/list_thumbnail_view_description"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:src="@drawable/dummy_thumbnail"
|
|
|
|
tools:ignore="RtlHardcoded"/>
|
|
|
|
|
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_gravity="center_vertical"
|
|
|
|
android:layout_alignParentRight="true"
|
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"
|
2020-03-31 09:43:10 +00:00
|
|
|
app:srcCompat="?attr/ic_drag_handle"
|
2017-10-09 05:43:07 +00:00
|
|
|
tools:ignore="ContentDescription,RtlHardcoded"/>
|
|
|
|
|
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_alignBottom="@id/itemThumbnailView"
|
|
|
|
android:layout_alignRight="@id/itemThumbnailView"
|
|
|
|
android:layout_marginBottom="@dimen/video_item_search_duration_margin"
|
|
|
|
android:layout_marginRight="@dimen/video_item_search_duration_margin"
|
|
|
|
android:background="@color/duration_background_color"
|
|
|
|
android:paddingBottom="@dimen/video_item_search_duration_vertical_padding"
|
|
|
|
android:paddingLeft="@dimen/video_item_search_duration_horizontal_padding"
|
|
|
|
android:paddingRight="@dimen/video_item_search_duration_horizontal_padding"
|
|
|
|
android:paddingTop="@dimen/video_item_search_duration_vertical_padding"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="@color/duration_text_color"
|
|
|
|
android:textSize="@dimen/video_item_search_duration_text_size"
|
|
|
|
tools:ignore="RtlHardcoded"
|
|
|
|
tools:text="1:09:10"/>
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/itemVideoTitleView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_toRightOf="@id/itemThumbnailView"
|
|
|
|
android:layout_toEndOf="@id/itemThumbnailView"
|
2017-10-09 05:43:07 +00:00
|
|
|
android:layout_toLeftOf="@id/itemHandle"
|
|
|
|
android:layout_toStartOf="@id/itemHandle"
|
2017-08-29 00:38:37 +00:00
|
|
|
android:ellipsize="end"
|
2017-11-11 22:47:34 +00:00
|
|
|
android:singleLine="true"
|
2017-08-29 00:38:37 +00:00
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
|
|
android:textSize="@dimen/video_item_search_title_text_size"
|
2017-10-09 05:43:07 +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"
|
|
|
|
android:layout_toRightOf="@id/itemThumbnailView"
|
|
|
|
android:layout_toEndOf="@id/itemThumbnailView"
|
2017-10-09 05:43:07 +00:00
|
|
|
android:layout_toLeftOf="@id/itemHandle"
|
|
|
|
android:layout_toStartOf="@id/itemHandle"
|
2017-11-11 22:47:34 +00:00
|
|
|
android:ellipsize="end"
|
|
|
|
android:singleLine="true"
|
2017-08-29 00:38:37 +00:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textSize="@dimen/video_item_search_upload_date_text_size"
|
2017-10-03 06:38:46 +00:00
|
|
|
tools:text="Uploader"/>
|
2017-10-09 05:43:07 +00:00
|
|
|
|
2017-08-29 00:38:37 +00:00
|
|
|
</RelativeLayout>
|