2017-08-29 00:38:37 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2021-06-07 05:57:26 +00:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-03-31 09:43:10 +00:00
|
|
|
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"
|
2021-06-07 05:57:26 +00:00
|
|
|
android:layout_height="wrap_content"
|
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"
|
2021-06-07 05:57:26 +00:00
|
|
|
android:foreground="?attr/selectableItemBackground">
|
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"
|
2021-06-07 05:57:26 +00:00
|
|
|
android:layout_marginStart="@dimen/video_item_search_image_right_margin"
|
|
|
|
android:layout_marginTop="@dimen/video_item_search_image_right_margin"
|
|
|
|
android:layout_marginBottom="@dimen/video_item_search_image_right_margin"
|
2017-08-29 00:38:37 +00:00
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:src="@drawable/dummy_thumbnail"
|
2021-06-07 05:57:26 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2017-10-09 05:43:07 +00:00
|
|
|
|
2021-09-04 17:32:38 +00:00
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
2017-08-29 00:38:37 +00:00
|
|
|
android:id="@+id/itemDurationView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2021-06-07 05:57:26 +00:00
|
|
|
android:layout_alignEnd="@id/itemThumbnailView"
|
2020-10-09 18:24:02 +00:00
|
|
|
android:layout_alignBottom="@id/itemThumbnailView"
|
2021-06-07 05:57:26 +00:00
|
|
|
android:layout_marginEnd="@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"
|
2021-06-07 05:57:26 +00:00
|
|
|
android:paddingStart="@dimen/video_item_search_duration_horizontal_padding"
|
2017-08-29 00:38:37 +00:00
|
|
|
android:paddingTop="@dimen/video_item_search_duration_vertical_padding"
|
2021-06-07 05:57:26 +00:00
|
|
|
android:paddingEnd="@dimen/video_item_search_duration_horizontal_padding"
|
2020-10-09 18:24:02 +00:00
|
|
|
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"
|
2021-06-07 05:57:26 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/itemThumbnailView"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/itemThumbnailView"
|
2020-10-09 18:24:02 +00:00
|
|
|
tools:text="1:09:10" />
|
2017-08-29 00:38:37 +00:00
|
|
|
|
|
|
|
|
2021-09-04 17:32:38 +00:00
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
2017-08-29 00:38:37 +00:00
|
|
|
android:id="@+id/itemVideoTitleView"
|
2021-06-07 05:57:26 +00:00
|
|
|
android:layout_width="0dp"
|
2017-08-29 00:38:37 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentTop="true"
|
2021-06-07 05:57:26 +00:00
|
|
|
android:layout_marginStart="8dp"
|
2017-10-09 05:43:07 +00:00
|
|
|
android:layout_toStartOf="@id/itemHandle"
|
2020-10-09 18:24:02 +00:00
|
|
|
android:layout_toEndOf="@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"
|
2021-06-07 05:57:26 +00:00
|
|
|
app:layout_constraintBottom_toTopOf="@+id/itemAdditionalDetails"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/itemHandle"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/itemThumbnailView"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
|
|
tools:text="Lorem ipsum dolor sit amet, consectetur adipisci elit. " />
|
2017-08-29 00:38:37 +00:00
|
|
|
|
2021-09-04 17:32:38 +00:00
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
2017-08-29 00:38:37 +00:00
|
|
|
android:id="@+id/itemAdditionalDetails"
|
2021-06-07 05:57:26 +00:00
|
|
|
android:layout_width="0dp"
|
2017-08-29 00:38:37 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentBottom="true"
|
2021-06-07 05:57:26 +00:00
|
|
|
android:layout_marginStart="8dp"
|
2017-10-09 05:43:07 +00:00
|
|
|
android:layout_toStartOf="@id/itemHandle"
|
2020-10-09 18:24:02 +00:00
|
|
|
android:layout_toEndOf="@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"
|
2021-06-07 05:57:26 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/itemHandle"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/itemThumbnailView"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/itemVideoTitleView"
|
|
|
|
tools:text="Uploader uploader uploader uploader uploader · Youtube" />
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/itemHandle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:paddingHorizontal="@dimen/video_item_search_image_right_margin"
|
|
|
|
android:scaleType="center"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:srcCompat="@drawable/ic_drag_handle"
|
|
|
|
tools:ignore="ContentDescription,RtlHardcoded" />
|
2017-10-09 05:43:07 +00:00
|
|
|
|
2021-06-07 05:57:26 +00:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|