mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-11-20 00:34:55 +00:00
33e29be7db
- Refactor VideoItemDetailActivity, StreamExtractorWorker - Remove redundant styles - Change dimensions - Nicer animation/transitions
117 lines
5.3 KiB
XML
117 lines
5.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<FrameLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/item_main_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<RelativeLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="12dp"
|
|
android:orientation="vertical">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/itemThumbnailViewContainer"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginRight="@dimen/video_item_search_image_right_margin"
|
|
tools:ignore="RtlHardcoded">
|
|
|
|
<ImageView
|
|
android:id="@+id/itemThumbnailView"
|
|
android:layout_width="@dimen/video_item_search_thumbnail_image_width"
|
|
android:layout_height="@dimen/video_item_search_thumbnail_image_height"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentTop="true"
|
|
android:contentDescription="@string/list_thumbnail_view_description"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/dummy_thumbnail"/>
|
|
|
|
<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:text="1:09:10"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/video_item_search_thumbnail_image_height"
|
|
android:layout_toRightOf="@id/itemThumbnailViewContainer"
|
|
android:orientation="vertical"
|
|
tools:ignore="RtlHardcoded">
|
|
|
|
<TextView
|
|
android:id="@+id/itemVideoTitleView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_above="@+id/itemUploaderView"
|
|
android:layout_alignParentTop="true"
|
|
android:ellipsize="end"
|
|
android:maxLines="2"
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
android:textSize="@dimen/video_item_search_title_text_size"
|
|
tools:text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tristique vitae sem vitae blanditLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsum"/>
|
|
|
|
<TextView
|
|
android:id="@+id/itemUploaderView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_above="@+id/itemUploadDateView"
|
|
android:maxLines="1"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textSize="@dimen/video_item_search_uploader_text_size"
|
|
tools:text="Uploader"/>
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/itemUploadDateView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:maxLines="1"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textSize="@dimen/video_item_search_upload_date_text_size"
|
|
tools:text="2 years ago • "/>
|
|
|
|
<TextView
|
|
android:id="@+id/itemViewCountView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_toRightOf="@+id/itemUploadDateView"
|
|
android:maxLines="1"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textSize="@dimen/video_item_search_upload_date_text_size"
|
|
tools:text="10M views"/>
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
<Button
|
|
android:id="@+id/item_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/selectableItemBackground"
|
|
tools:visibility="gone"/>
|
|
</FrameLayout> |