2018-08-22 05:32:58 +00:00
<?xml version="1.0" encoding="utf-8"?>
2019-12-29 21:15:01 +00:00
<FrameLayout xmlns:android= "http://schemas.android.com/apk/res/android"
2020-05-07 18:51:54 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2020-10-31 05:49:07 +00:00
android:id="@+id/video_item_detail"
2020-05-07 18:51:54 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-10-09 18:24:02 +00:00
android:background="?attr/windowBackground">
2020-05-07 18:51:54 +00:00
2020-10-09 18:24:02 +00:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:baselineAligned="false"
android:focusableInTouchMode="true"
android:orientation="horizontal"
tools:ignore="RtlHardcoded">
<org.schabi.newpipe.views.FocusAwareCoordinator
android:id="@+id/detail_main_content"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="5"
android:isScrollContainer="true">
2020-05-07 18:51:54 +00:00
2020-10-09 18:24:02 +00:00
<com.google.android.material.appbar.AppBarLayout
2021-01-17 04:21:11 +00:00
android:id="@+id/app_bar_layout"
2020-05-07 18:51:54 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-10-09 18:24:02 +00:00
android:background="@android:color/transparent"
android:touchscreenBlocksFocus="false"
app:elevation="0dp"
app:layout_behavior="com.google.android.material.appbar.FlingBehavior">
2020-05-07 18:51:54 +00:00
2020-10-09 18:24:02 +00:00
<org.schabi.newpipe.views.CustomCollapsingToolbarLayout
2020-05-07 18:51:54 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-10-09 18:24:02 +00:00
app:layout_scrollFlags="scroll">
2020-05-07 18:51:54 +00:00
2020-10-09 18:24:02 +00:00
<!-- THUMBNAIL -->
<FrameLayout
android:id="@+id/detail_thumbnail_root_layout"
android:layout_width="match_parent"
2020-05-07 18:51:54 +00:00
android:layout_height="wrap_content"
2020-10-09 18:24:02 +00:00
android:background="@android:color/black"
android:clickable="true"
android:descendantFocusability="afterDescendants"
android:focusable="true"
android:foreground="?attr/selectableItemBackground"
app:layout_collapseMode="parallax">
2020-05-07 18:51:54 +00:00
2020-10-09 18:24:02 +00:00
<ImageView
android:id="@+id/detail_thumbnail_image_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-08-13 15:24:22 +00:00
android:background="?windowBackground"
2020-10-09 18:24:02 +00:00
android:contentDescription="@string/detail_thumbnail_view_description"
android:scaleType="fitCenter"
tools:ignore="RtlHardcoded"
tools:layout_height="200dp"
tools:src="@drawable/dummy_thumbnail" />
<ImageView
android:id="@+id/detail_thumbnail_play_button"
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_gravity="center"
android:background="@android:color/transparent"
android:visibility="invisible"
app:srcCompat="@drawable/ic_play_arrow_shadow"
tools:ignore="ContentDescription"
tools:visibility="visible" />
2020-05-07 18:51:54 +00:00
2020-10-09 18:24:02 +00:00
<TextView
android:id="@+id/touch_append_detail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="#64000000"
android:paddingLeft="30dp"
android:paddingTop="10dp"
android:paddingRight="30dp"
android:paddingBottom="10dp"
android:text="@string/hold_to_append"
android:textColor="@android:color/white"
android:textSize="20sp"
android:textStyle="bold"
android:visibility="gone"
tools:ignore="RtlHardcoded"
tools:visibility="visible" />
2020-05-07 18:51:54 +00:00
2020-10-09 18:24:02 +00:00
<TextView
android:id="@+id/detail_duration_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|right"
android:layout_marginLeft="12dp"
android:layout_marginTop="8dp"
android:layout_marginRight="12dp"
android:layout_marginBottom="8dp"
android:alpha=".6"
android:background="#23000000"
android:gravity="center"
android:paddingLeft="6dp"
android:paddingTop="2dp"
android:paddingRight="6dp"
android:paddingBottom="2dp"
android:textAllCaps="true"
android:textColor="@android:color/white"
android:textSize="12sp"
android:textStyle="bold"
android:visibility="gone"
tools:ignore="RtlHardcoded"
tools:text="12:38"
tools:visibility="visible" />
2019-09-29 16:35:29 +00:00
2020-10-09 18:24:02 +00:00
<TextView
android:id="@+id/detail_position_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|left"
android:layout_marginLeft="12dp"
android:layout_marginTop="8dp"
android:layout_marginRight="12dp"
android:layout_marginBottom="8dp"
android:alpha=".6"
android:background="?colorPrimary"
android:gravity="center"
android:paddingLeft="6dp"
android:paddingTop="2dp"
android:paddingRight="6dp"
android:paddingBottom="2dp"
android:textAllCaps="true"
android:textColor="@android:color/white"
android:textSize="12sp"
android:textStyle="bold"
android:visibility="gone"
tools:text="12:38"
tools:visibility="visible" />
2019-12-29 21:15:01 +00:00
2020-10-09 18:24:02 +00:00
<org.schabi.newpipe.views.AnimatedProgressBar
android:id="@+id/position_view"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="2dp"
android:layout_gravity="bottom"
android:background="@android:color/transparent"
android:progressDrawable="?attr/progress_horizontal_drawable"
android:visibility="invisible"
tools:max="100"
tools:progress="40"
tools:visibility="visible" />
<!-- Player will be inserted here in realtime -->
<FrameLayout
android:id="@+id/player_placeholder"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:descendantFocusability="afterDescendants" />
2020-05-07 18:51:54 +00:00
2020-10-09 18:24:02 +00:00
</FrameLayout>
2020-05-07 18:51:54 +00:00
2020-10-09 18:24:02 +00:00
</org.schabi.newpipe.views.CustomCollapsingToolbarLayout>
2020-05-07 18:51:54 +00:00
2020-10-09 18:24:02 +00:00
<!-- CONTENT -->
<RelativeLayout
android:id="@+id/detail_content_root_layout"
2020-05-07 18:51:54 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-10-09 18:24:02 +00:00
app:layout_scrollFlags="scroll">
<!-- TITLE -->
<FrameLayout
android:id="@+id/detail_title_root_layout"
2020-05-07 18:51:54 +00:00
android:layout_width="match_parent"
2020-10-09 18:24:02 +00:00
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
android:paddingStart="12dp"
tools:ignore="RtlSymmetry">
<TextView
android:id="@+id/detail_video_title_view"
2020-05-07 18:51:54 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-10-09 18:24:02 +00:00
android:layout_marginEnd="30dp"
android:ellipsize="end"
android:maxLines="1"
android:paddingTop="12dp"
android:paddingBottom="8dp"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="@dimen/video_item_detail_title_text_size"
tools:text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed a ultricies ex. Integer sit amet sodales risus. Duis non mi et urna pretium bibendum. Nunc eleifend est quis ipsum porttitor egestas. Sed facilisis, nisl quis eleifend pellentesque, orci metus egestas dolor, at accumsan eros metus quis libero." />
<ImageView
2021-01-17 14:59:29 +00:00
android:id="@+id/detail_toggle_secondary_controls_view"
2020-10-09 18:24:02 +00:00
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="top|end"
android:layout_marginTop="11dp"
android:layout_marginEnd="10dp"
2021-03-27 14:45:49 +00:00
app:srcCompat="@drawable/ic_expand_more"
2020-10-09 18:24:02 +00:00
tools:ignore="ContentDescription" />
</FrameLayout>
<!-- LOADING INDICATOR -->
<ProgressBar
android:id="@+id/loading_progress_bar"
style="@style/Widget.AppCompat.ProgressBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/detail_title_root_layout"
android:layout_marginTop="@dimen/video_item_detail_error_panel_margin"
android:indeterminate="true"
android:visibility="gone"
tools:visibility="visible" />
2020-05-07 18:51:54 +00:00
2020-10-09 18:24:02 +00:00
<!-- ERROR PANEL -->
<include
android:id="@+id/error_panel"
2020-12-11 13:55:47 +00:00
layout="@layout/error_panel"
2020-10-09 18:24:02 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/detail_title_root_layout"
android:layout_marginTop="@dimen/video_item_detail_error_panel_margin"
android:visibility="gone"
tools:visibility="visible" />
<!-- HIDING ROOT -->
<LinearLayout
android:id="@+id/detail_content_root_hiding"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/detail_title_root_layout"
android:orientation="vertical"
android:paddingBottom="10dp"
android:visibility="gone"
tools:visibility="visible">
2020-05-07 18:51:54 +00:00
2020-10-09 18:24:02 +00:00
<!-- DETAIL -->
<RelativeLayout
android:id="@+id/detail_root"
android:layout_width="match_parent"
android:layout_height="55dp"
android:layout_marginLeft="12dp"
android:layout_marginTop="6dp"
android:layout_marginRight="12dp"
android:baselineAligned="false"
android:orientation="horizontal">
2020-05-07 18:51:54 +00:00
2020-10-09 18:24:02 +00:00
<!-- UPLOADER -->
2020-05-07 18:51:54 +00:00
<LinearLayout
2020-10-09 18:24:02 +00:00
android:id="@+id/detail_uploader_root_layout"
2020-05-07 18:51:54 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-10-09 18:24:02 +00:00
android:layout_toStartOf="@id/details_panel"
android:layout_toLeftOf="@id/details_panel"
android:background="?attr/selectableItemBackground"
android:focusable="true"
2020-05-07 18:51:54 +00:00
android:gravity="center_vertical"
2020-10-09 18:24:02 +00:00
android:orientation="horizontal"
android:padding="6dp">
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/detail_uploader_thumbnail_view"
android:layout_width="@dimen/video_item_detail_uploader_image_size"
android:layout_height="@dimen/video_item_detail_uploader_image_size"
android:contentDescription="@string/detail_uploader_thumbnail_view_description"
android:src="@drawable/buddy" />
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/detail_sub_channel_thumbnail_view"
android:layout_width="@dimen/video_item_detail_sub_channel_image_size"
android:layout_height="@dimen/video_item_detail_sub_channel_image_size"
android:layout_gravity="bottom|right"
android:contentDescription="@string/detail_sub_channel_thumbnail_view_description"
android:src="@drawable/buddy"
android:visibility="gone"
tools:visibility="visible" />
</FrameLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:orientation="vertical">
<TextView
android:id="@+id/detail_sub_channel_text_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="@dimen/video_item_detail_sub_channel_text_size"
android:textStyle="bold"
tools:ignore="RtlHardcoded"
tools:text="Channel" />
<TextView
android:id="@+id/detail_uploader_text_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="@dimen/video_item_detail_uploader_text_size"
android:textStyle="bold"
tools:ignore="RtlHardcoded"
tools:text="Uploader" />
</LinearLayout>
<!-- <Button
android:id="@+id/detail_uploader_subscribe"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|right"
android:layout_marginRight="12dp"
android:text="@string/rss_button_title"
android:textSize="12sp"
android:theme="@style/RedButton"
2021-03-27 14:45:49 +00:00
app:drawableLeftCompat="@drawable/ic_rss_feed"
2020-10-09 18:24:02 +00:00
tools:ignore="RtlHardcoded"
android:visibility="gone"/>-->
</LinearLayout>
<!-- VIEW & THUMBS -->
<RelativeLayout
android:id="@+id/details_panel"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:paddingLeft="6dp"
android:paddingRight="6dp">
2020-05-07 18:51:54 +00:00
<TextView
2020-10-09 18:24:02 +00:00
android:id="@+id/detail_view_count_view"
android:layout_width="wrap_content"
2020-05-07 18:51:54 +00:00
android:layout_height="wrap_content"
2020-10-09 18:24:02 +00:00
android:layout_centerHorizontal="true"
android:layout_marginTop="6dp"
android:layout_marginBottom="6dp"
android:lines="1"
2020-05-07 18:51:54 +00:00
android:textAppearance="?android:attr/textAppearanceLarge"
2020-10-09 18:24:02 +00:00
android:textSize="@dimen/video_item_detail_views_text_size"
2020-05-07 18:51:54 +00:00
tools:ignore="RtlHardcoded"
2020-10-09 18:24:02 +00:00
tools:text="2,816,821,505 views" />
<ImageView
android:id="@+id/detail_thumbs_up_img_view"
android:layout_width="@dimen/video_item_detail_like_image_width"
android:layout_height="@dimen/video_item_detail_like_image_height"
android:layout_below="@id/detail_view_count_view"
android:contentDescription="@string/detail_likes_img_view_description"
2021-03-27 14:45:49 +00:00
app:srcCompat="@drawable/ic_thumb_up" />
2020-05-07 18:51:54 +00:00
<TextView
2020-10-09 18:24:02 +00:00
android:id="@+id/detail_thumbs_up_count_view"
android:layout_width="wrap_content"
android:layout_height="@dimen/video_item_detail_like_image_height"
android:layout_below="@id/detail_view_count_view"
android:layout_marginLeft="@dimen/video_item_detail_like_margin"
android:layout_toRightOf="@id/detail_thumbs_up_img_view"
android:gravity="center_vertical"
android:lines="1"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="@dimen/video_item_detail_likes_text_size"
tools:ignore="RtlHardcoded"
tools:text="12M" />
<ImageView
android:id="@+id/detail_thumbs_down_img_view"
android:layout_width="@dimen/video_item_detail_like_image_width"
android:layout_height="@dimen/video_item_detail_like_image_height"
android:layout_below="@id/detail_view_count_view"
android:layout_marginLeft="12dp"
android:layout_toRightOf="@id/detail_thumbs_up_count_view"
android:contentDescription="@string/detail_dislikes_img_view_description"
2021-03-27 14:45:49 +00:00
app:srcCompat="@drawable/ic_thumb_down"
2020-10-09 18:24:02 +00:00
tools:ignore="RtlHardcoded" />
<TextView
android:id="@+id/detail_thumbs_down_count_view"
android:layout_width="wrap_content"
android:layout_height="@dimen/video_item_detail_like_image_height"
android:layout_below="@id/detail_view_count_view"
android:layout_marginLeft="@dimen/video_item_detail_like_margin"
android:layout_toRightOf="@id/detail_thumbs_down_img_view"
android:gravity="center_vertical"
android:lines="1"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="@dimen/video_item_detail_likes_text_size"
tools:ignore="RtlHardcoded"
tools:text="10K" />
<TextView
android:id="@+id/detail_thumbs_disabled_view"
android:layout_width="wrap_content"
android:layout_height="@dimen/video_item_detail_like_image_height"
android:layout_below="@id/detail_view_count_view"
android:layout_marginLeft="12dp"
android:layout_toRightOf="@id/detail_thumbs_down_img_view"
android:gravity="center_vertical"
android:text="@string/disabled"
2020-05-07 18:51:54 +00:00
android:textAppearance="?android:attr/textAppearanceLarge"
2020-10-09 18:24:02 +00:00
android:textSize="@dimen/video_item_detail_likes_text_size"
2020-05-07 18:51:54 +00:00
android:textStyle="bold"
2020-10-09 18:24:02 +00:00
android:visibility="gone"
2020-05-07 18:51:54 +00:00
tools:ignore="RtlHardcoded"
2020-10-09 18:24:02 +00:00
tools:visibility="visible" />
</RelativeLayout>
</RelativeLayout>
2020-05-07 18:51:54 +00:00
2020-10-16 18:01:03 +00:00
<!-- CONTROLS -->
2020-10-09 18:24:02 +00:00
<LinearLayout
android:id="@+id/detail_control_panel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:descendantFocusability="afterDescendants"
android:focusable="true"
android:orientation="horizontal"
2020-10-16 18:01:03 +00:00
android:padding="@dimen/detail_control_padding">
2020-05-07 18:51:54 +00:00
<TextView
2020-10-09 18:24:02 +00:00
android:id="@+id/detail_controls_playlist_append"
2020-10-16 18:01:03 +00:00
android:layout_width="@dimen/detail_control_width"
android:layout_height="@dimen/detail_control_height"
2020-10-09 18:24:02 +00:00
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:contentDescription="@string/append_playlist"
android:focusable="true"
android:gravity="center"
2020-10-16 18:01:03 +00:00
android:paddingVertical="@dimen/detail_control_padding"
2020-10-09 18:24:02 +00:00
android:text="@string/controls_add_to_playlist_title"
2020-10-16 18:01:03 +00:00
android:textSize="@dimen/detail_control_text_size"
2021-03-27 14:45:49 +00:00
app:drawableTopCompat="@drawable/ic_playlist_add" />
2020-05-07 18:51:54 +00:00
<TextView
2020-10-09 18:24:02 +00:00
android:id="@+id/detail_controls_background"
2020-10-16 18:01:03 +00:00
android:layout_width="@dimen/detail_control_width"
android:layout_height="@dimen/detail_control_height"
2020-10-09 18:24:02 +00:00
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:contentDescription="@string/play_audio"
android:focusable="true"
android:gravity="center"
2020-10-16 18:01:03 +00:00
android:paddingVertical="@dimen/detail_control_padding"
2020-10-09 18:24:02 +00:00
android:text="@string/controls_background_title"
2020-10-16 18:01:03 +00:00
android:textSize="@dimen/detail_control_text_size"
2021-03-27 14:45:49 +00:00
app:drawableTopCompat="@drawable/ic_headset" />
2020-05-07 18:51:54 +00:00
<TextView
2020-10-09 18:24:02 +00:00
android:id="@+id/detail_controls_popup"
2020-10-16 18:01:03 +00:00
android:layout_width="@dimen/detail_control_width"
android:layout_height="@dimen/detail_control_height"
2020-10-09 18:24:02 +00:00
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:contentDescription="@string/open_in_popup_mode"
android:focusable="true"
android:gravity="center"
2020-10-16 18:01:03 +00:00
android:paddingVertical="@dimen/detail_control_padding"
2020-10-09 18:24:02 +00:00
android:text="@string/controls_popup_title"
2020-10-16 18:01:03 +00:00
android:textSize="@dimen/detail_control_text_size"
2021-03-27 14:45:49 +00:00
app:drawableTopCompat="@drawable/ic_picture_in_picture" />
2018-08-22 05:32:58 +00:00
2020-05-07 18:51:54 +00:00
<TextView
2020-10-09 18:24:02 +00:00
android:id="@+id/detail_controls_download"
2020-10-16 18:01:03 +00:00
android:layout_width="@dimen/detail_control_width"
android:layout_height="@dimen/detail_control_height"
2020-10-09 18:24:02 +00:00
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:contentDescription="@string/controls_download_desc"
android:focusable="true"
android:gravity="center"
2020-10-16 18:01:03 +00:00
android:paddingVertical="@dimen/detail_control_padding"
2020-10-09 18:24:02 +00:00
android:text="@string/download"
2020-10-16 18:01:03 +00:00
android:textSize="@dimen/detail_control_text_size"
2021-03-27 14:45:49 +00:00
app:drawableTopCompat="@drawable/ic_file_download" />
2020-05-07 18:51:54 +00:00
2020-10-09 18:24:02 +00:00
</LinearLayout>
2020-05-07 18:51:54 +00:00
2020-10-16 18:01:03 +00:00
<!-- SECONDARY CONTROLS -->
<LinearLayout
android:id="@+id/detail_secondary_control_panel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:descendantFocusability="afterDescendants"
android:focusable="true"
android:orientation="horizontal"
2020-11-01 12:55:20 +00:00
android:paddingHorizontal="@dimen/detail_control_padding"
android:paddingBottom="@dimen/detail_control_padding"
2020-10-16 18:01:03 +00:00
android:visibility="gone"
tools:visibility="visible">
<TextView
android:id="@+id/detail_controls_share"
android:layout_width="@dimen/detail_control_width"
android:layout_height="@dimen/detail_control_height"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:contentDescription="@string/share"
android:focusable="true"
android:gravity="center"
android:paddingVertical="@dimen/detail_control_padding"
android:text="@string/share"
android:textSize="@dimen/detail_control_text_size"
2021-03-27 14:45:49 +00:00
app:drawableTopCompat="@drawable/ic_share" />
2020-10-16 18:01:03 +00:00
<TextView
android:id="@+id/detail_controls_open_in_browser"
android:layout_width="@dimen/detail_control_width"
android:layout_height="@dimen/detail_control_height"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:contentDescription="@string/open_in_browser"
android:focusable="true"
android:gravity="center"
android:paddingVertical="@dimen/detail_control_padding"
android:text="@string/open_in_browser"
android:textSize="@dimen/detail_control_text_size"
2021-03-27 14:45:49 +00:00
app:drawableTopCompat="@drawable/ic_language" />
2020-10-16 18:01:03 +00:00
<TextView
android:id="@+id/detail_controls_play_with_kodi"
android:layout_width="@dimen/detail_control_width"
android:layout_height="@dimen/detail_control_height"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:contentDescription="@string/play_with_kodi_title"
android:focusable="true"
android:gravity="center"
android:paddingVertical="@dimen/detail_control_padding"
android:text="@string/play_with_kodi_title"
android:textSize="@dimen/detail_control_text_size"
2021-03-27 14:45:49 +00:00
app:drawableTopCompat="@drawable/ic_cast" />
2020-10-16 18:01:03 +00:00
</LinearLayout>
2020-12-15 16:41:21 +00:00
<View
2020-12-20 14:05:37 +00:00
android:id="@+id/detail_meta_info_separator"
2020-12-15 16:41:21 +00:00
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:background="?attr/separator_color" />
2020-12-20 14:05:37 +00:00
<TextView
android:id="@+id/detail_meta_info_text_view"
2020-12-15 16:41:21 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-12-20 14:05:37 +00:00
android:gravity="center"
android:padding="12dp"
android:textSize="@dimen/video_item_detail_description_text_size"
tools:text="Stream meta info with link" />
2020-12-15 16:41:21 +00:00
2020-10-09 18:24:02 +00:00
<View
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:background="?attr/separator_color" />
2020-05-07 18:51:54 +00:00
2020-10-09 18:24:02 +00:00
</LinearLayout>
</RelativeLayout>
</com.google.android.material.appbar.AppBarLayout>
2020-05-07 18:51:54 +00:00
2020-10-09 18:24:02 +00:00
<androidx.viewpager.widget.ViewPager
2021-01-17 04:21:11 +00:00
android:id="@+id/view_pager"
2020-10-09 18:24:02 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-12-29 15:02:10 +00:00
app:layout_behavior="@string/appbar_scrolling_view_behavior"
android:paddingBottom="48dp"/>
2020-05-07 18:51:54 +00:00
2020-12-29 15:02:10 +00:00
<com.google.android.material.tabs.TabLayout
android:id="@+id/tab_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
2021-03-27 14:45:49 +00:00
app:tabIndicatorGravity="top"
2020-12-29 15:02:10 +00:00
app:tabIconTint="?attr/colorAccent"
app:tabBackground="?attr/windowBackground"
app:tabGravity="fill"
app:elevation="16dp"/>
2020-05-07 18:51:54 +00:00
2020-10-09 18:24:02 +00:00
</org.schabi.newpipe.views.FocusAwareCoordinator>
2020-05-07 18:51:54 +00:00
2021-03-22 21:46:06 +00:00
<androidx.fragment.app.FragmentContainerView
2021-03-31 18:16:08 +00:00
android:id="@+id/relatedItemsLayout"
2020-10-09 18:24:02 +00:00
android:layout_width="0dp"
2020-05-07 18:51:54 +00:00
android:layout_height="match_parent"
2020-10-09 18:24:02 +00:00
android:layout_marginTop="10dp"
2021-03-22 21:46:06 +00:00
android:layout_weight="3" />
2020-10-09 18:24:02 +00:00
</LinearLayout>
2020-02-12 19:33:23 +00:00
2020-10-09 18:24:02 +00:00
<RelativeLayout
android:id="@+id/overlay_layout"
android:layout_width="match_parent"
2020-05-07 18:51:54 +00:00
android:layout_height="match_parent"
2020-10-09 18:24:02 +00:00
android:alpha="0.9"
android:background="?attr/windowBackground"
android:descendantFocusability="blocksDescendants">
<ImageButton
android:id="@+id/overlay_thumbnail"
android:layout_width="85dp"
android:layout_height="60dp"
android:layout_alignParentStart="true"
android:background="@color/transparent_background_color"
android:contentDescription="@string/list_thumbnail_view_description"
android:gravity="center_vertical"
android:paddingLeft="@dimen/video_item_search_padding"
android:paddingRight="@dimen/video_item_search_padding"
android:scaleType="fitCenter"
android:src="@drawable/dummy_thumbnail" />
<LinearLayout
android:id="@+id/overlay_metadata_layout"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_toStartOf="@+id/overlay_buttons_layout"
android:layout_toEndOf="@+id/overlay_thumbnail"
android:clickable="true"
android:focusable="true"
android:gravity="center_vertical"
android:orientation="vertical"
tools:ignore="RtlHardcoded">
<TextView
android:id="@+id/overlay_title_text_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="@dimen/video_item_search_title_text_size"
tools:ignore="RtlHardcoded"
tools:text="The Video Title LONG very LONVideo Title LONG very LONG" />
<TextView
android:id="@+id/overlay_channel_text_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textSize="@dimen/video_item_search_uploader_text_size"
tools:text="The Video Artist LONG very LONG very Long" />
</LinearLayout>
<LinearLayout
android:id="@+id/overlay_buttons_layout"
android:layout_width="wrap_content"
android:layout_height="60dp"
android:layout_alignParentEnd="true"
android:gravity="center_vertical"
android:paddingLeft="@dimen/video_item_search_padding"
android:paddingRight="@dimen/video_item_search_padding"
tools:ignore="RtlHardcoded">
<ImageButton
android:id="@+id/overlay_play_pause_button"
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"
android:background="?attr/selectableItemBackground"
android:padding="10dp"
android:scaleType="center"
2021-02-12 09:17:46 +00:00
android:focusable="true"
android:focusedByDefault="true"
2021-03-27 14:45:49 +00:00
app:srcCompat="@drawable/ic_play_arrow"
2020-10-09 18:24:02 +00:00
tools:ignore="ContentDescription,RtlHardcoded" />
<ImageButton
android:id="@+id/overlay_close_button"
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_marginLeft="2dp"
android:background="?attr/selectableItemBackground"
android:padding="10dp"
android:scaleType="center"
2021-03-27 14:45:49 +00:00
app:srcCompat="@drawable/ic_close"
2020-10-09 18:24:02 +00:00
tools:ignore="ContentDescription,RtlHardcoded" />
</LinearLayout>
</RelativeLayout>
</FrameLayout>