2018-08-22 09:14:01 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2021-06-14 19:21:42 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2020-04-06 21:07:16 +02:00
|
|
|
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:padding="@dimen/video_item_search_padding">
|
2018-08-22 09:14:01 +02:00
|
|
|
|
2020-04-06 21:07:16 +02:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/itemThumbnailView"
|
|
|
|
android:layout_width="@dimen/video_item_grid_thumbnail_image_width"
|
|
|
|
android:layout_height="@dimen/video_item_grid_thumbnail_image_height"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:src="@drawable/dummy_thumbnail"
|
2021-06-14 19:21:42 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2018-08-22 09:14:01 +02:00
|
|
|
|
2021-09-04 19:32:38 +02:00
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
2020-04-06 21:07:16 +02:00
|
|
|
android:id="@+id/itemDurationView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2021-06-14 19:21:42 +02:00
|
|
|
android:layout_marginEnd="@dimen/video_item_search_duration_margin"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:layout_marginBottom="@dimen/video_item_search_duration_margin"
|
2020-04-06 21:07:16 +02: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 20:24:02 +02:00
|
|
|
android:paddingRight="@dimen/video_item_search_duration_horizontal_padding"
|
|
|
|
android:paddingBottom="@dimen/video_item_search_duration_vertical_padding"
|
2020-04-06 21:07:16 +02:00
|
|
|
android:textAllCaps="true"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="@color/duration_text_color"
|
|
|
|
android:textSize="@dimen/video_item_search_duration_text_size"
|
2021-06-14 19:21:42 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/itemThumbnailView"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/itemThumbnailView"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:text="1:09:10" />
|
2018-08-22 09:14:01 +02:00
|
|
|
|
2021-09-04 19:32:38 +02:00
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
2020-04-06 21:07:16 +02:00
|
|
|
android:id="@+id/itemVideoTitleView"
|
2021-06-14 19:21:42 +02:00
|
|
|
android:layout_width="0dp"
|
2020-04-06 21:07:16 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
|
|
android:textSize="@dimen/video_item_search_title_text_size"
|
2021-06-14 19:21:42 +02:00
|
|
|
app:layout_constraintBottom_toTopOf="@+id/itemUploaderView"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/itemThumbnailView"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/itemThumbnailView"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/itemProgressView"
|
|
|
|
tools:text="@tools:sample/lorem[10]" />
|
2018-08-22 09:14:01 +02:00
|
|
|
|
2021-09-04 19:32:38 +02:00
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
2020-04-06 21:07:16 +02:00
|
|
|
android:id="@+id/itemUploaderView"
|
2021-06-14 19:21:42 +02:00
|
|
|
android:layout_width="0dp"
|
2020-04-06 21:07:16 +02:00
|
|
|
android:layout_height="wrap_content"
|
2021-06-14 19:21:42 +02:00
|
|
|
android:ellipsize="end"
|
2020-04-06 21:07:16 +02:00
|
|
|
android:lines="1"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textSize="@dimen/video_item_search_uploader_text_size"
|
2021-06-14 19:21:42 +02:00
|
|
|
app:layout_constraintBottom_toTopOf="@+id/itemAdditionalDetails"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/itemThumbnailView"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/itemThumbnailView"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/itemVideoTitleView"
|
|
|
|
tools:text="Uploader name long very very long long" />
|
2019-04-15 20:19:59 +02:00
|
|
|
|
2021-09-04 19:32:38 +02:00
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
2020-04-06 21:07:16 +02:00
|
|
|
android:id="@+id/itemAdditionalDetails"
|
2021-06-14 19:21:42 +02:00
|
|
|
android:layout_width="0dp"
|
2020-04-06 21:07:16 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:lines="1"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textSize="@dimen/video_item_search_upload_date_text_size"
|
2021-06-14 19:21:42 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/itemThumbnailView"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/itemThumbnailView"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/itemUploaderView"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:text="2 years ago • 10M views" />
|
2020-03-28 14:19:42 +01:00
|
|
|
|
2020-04-06 21:07:16 +02:00
|
|
|
<org.schabi.newpipe.views.AnimatedProgressBar
|
|
|
|
android:id="@+id/itemProgressView"
|
|
|
|
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
|
2021-06-14 19:21:42 +02:00
|
|
|
android:layout_width="0dp"
|
2020-04-06 21:07:16 +02:00
|
|
|
android:layout_height="4dp"
|
2021-06-14 19:21:42 +02:00
|
|
|
android:progressDrawable="?progress_horizontal_drawable"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/itemThumbnailView"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/itemThumbnailView"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/itemThumbnailView" />
|
2019-04-15 20:19:59 +02:00
|
|
|
|
2021-06-14 19:21:42 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|