NewPipe/app/src/main/res/layout/play_queue_item.xml

103 lines
4.5 KiB
XML
Raw Normal View History

<?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"
2020-10-09 18:24:02 +00:00
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/itemRoot"
android:layout_width="match_parent"
android:layout_height="48dp"
android:background="?attr/selector"
android:clickable="true"
android:focusable="true"
2020-10-09 18:24:02 +00:00
android:foreground="?attr/selectableItemBackground"
android:paddingTop="6dp"
android:paddingBottom="6dp">
<androidx.appcompat.widget.AppCompatImageView
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"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"
android:scaleType="fitXY"
app:srcCompat="?attr/ic_selected"
2020-10-09 18:24:02 +00:00
tools:ignore="ContentDescription,RtlHardcoded" />
<ImageView
android:id="@+id/itemThumbnailView"
android:layout_width="@dimen/play_queue_thumbnail_width"
android:layout_height="@dimen/play_queue_thumbnail_height"
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"
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" />
<androidx.appcompat.widget.AppCompatImageView
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"
android:padding="@dimen/video_item_search_image_right_margin"
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" />
<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"
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"
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"
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" />
<TextView
android:id="@+id/itemVideoTitleView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
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"
android:ellipsize="end"
android:singleLine="true"
2021-03-28 17:43:52 +00:00
android:textAppearance="@style/ItemStreamSegmentTitle"
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. " />
<TextView
android:id="@+id/itemAdditionalDetails"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
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"
android:ellipsize="end"
android:singleLine="true"
2021-03-28 17:43:52 +00:00
android:textAppearance="@style/ItemStreamSegmentSubtitle"
android:textSize="@dimen/video_item_search_upload_date_text_size"
2020-10-09 18:24:02 +00:00
tools:text="Uploader" />
2020-10-09 18:24:02 +00:00
</RelativeLayout>