2017-03-27 06:08:16 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-10-09 20:24:02 +02:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-12-29 22:15:01 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2020-10-09 20:24:02 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2017-03-09 05:44:00 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2019-12-29 22:15:01 +01:00
|
|
|
android:background="@color/black"
|
2017-05-14 05:32:28 +02:00
|
|
|
android:gravity="center">
|
2017-03-09 05:44:00 +01:00
|
|
|
|
2020-02-05 06:59:30 +01:00
|
|
|
<org.schabi.newpipe.views.ExpandableSurfaceView
|
|
|
|
android:id="@+id/surfaceView"
|
2017-03-09 05:44:00 +01:00
|
|
|
android:layout_width="match_parent"
|
2017-03-27 06:08:16 +02:00
|
|
|
android:layout_height="match_parent"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:layout_centerInParent="true" />
|
2017-03-27 06:08:16 +02:00
|
|
|
|
2020-02-05 06:59:30 +01:00
|
|
|
<View
|
|
|
|
android:id="@+id/surfaceForeground"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:layout_alignBottom="@+id/surfaceView"
|
|
|
|
android:background="@android:color/black" />
|
2017-03-27 06:08:16 +02:00
|
|
|
|
2018-02-03 23:39:03 +01:00
|
|
|
<com.google.android.exoplayer2.ui.SubtitleView
|
|
|
|
android:id="@+id/subtitleView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_centerInParent="true"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:layout_gravity="center" />
|
2017-03-27 06:08:16 +02:00
|
|
|
|
2020-09-15 18:50:46 +02:00
|
|
|
<View
|
|
|
|
android:id="@+id/playerTopShadow"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_alignParentTop="true"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:background="@drawable/player_controls_top_background"
|
|
|
|
android:visibility="gone" />
|
2020-09-15 18:50:46 +02:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/playerBottomShadow"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_alignParentBottom="true"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:background="@drawable/player_controls_background"
|
|
|
|
android:visibility="gone" />
|
2020-09-15 18:50:46 +02:00
|
|
|
|
2017-03-27 06:08:16 +02:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/endScreen"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:background="@android:color/white"
|
|
|
|
tools:ignore="ContentDescription"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:visibility="visible" />
|
2017-03-27 06:08:16 +02:00
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/playbackControlRoot"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2018-04-08 01:40:38 +02:00
|
|
|
android:background="@color/video_overlay_color"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:fitsSystemWindows="true"
|
2017-03-27 06:08:16 +02:00
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
2019-12-29 22:15:01 +01:00
|
|
|
<!-- All top controls in this layout -->
|
2017-03-27 06:08:16 +02:00
|
|
|
<RelativeLayout
|
2018-03-04 05:58:53 +01:00
|
|
|
android:id="@+id/playbackWindowRoot"
|
2017-03-27 06:08:16 +02:00
|
|
|
android:layout_width="match_parent"
|
2020-09-14 01:46:00 +02:00
|
|
|
android:layout_height="match_parent">
|
2017-03-27 06:08:16 +02:00
|
|
|
|
2019-12-29 22:15:01 +01:00
|
|
|
<LinearLayout
|
2017-03-27 06:08:16 +02:00
|
|
|
android:id="@+id/topControls"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentTop="true"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:baselineAligned="false"
|
2019-12-29 22:15:01 +01:00
|
|
|
android:gravity="top"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:orientation="vertical"
|
2020-02-05 06:59:30 +01:00
|
|
|
android:paddingStart="@dimen/player_main_controls_padding"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:paddingTop="@dimen/player_main_top_padding"
|
|
|
|
android:paddingEnd="@dimen/player_main_controls_padding">
|
2019-12-29 22:15:01 +01:00
|
|
|
|
2017-03-27 06:08:16 +02:00
|
|
|
<LinearLayout
|
2020-08-02 22:59:43 +02:00
|
|
|
android:id="@+id/primaryControls"
|
|
|
|
android:layout_width="match_parent"
|
2017-03-27 06:08:16 +02:00
|
|
|
android:layout_height="wrap_content"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:baselineAligned="false"
|
2017-03-27 06:08:16 +02:00
|
|
|
android:gravity="top"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:minHeight="45dp"
|
2020-08-02 22:59:43 +02:00
|
|
|
tools:ignore="RtlHardcoded">
|
2017-03-27 06:08:16 +02:00
|
|
|
|
2020-08-03 14:17:12 +02:00
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
2020-08-02 22:59:43 +02:00
|
|
|
android:id="@+id/playerCloseButton"
|
|
|
|
android:layout_width="36dp"
|
|
|
|
android:layout_height="36dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2017-10-28 21:57:09 +02:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:padding="@dimen/player_main_buttons_padding"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:scaleType="fitXY"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:visibility="gone"
|
2020-10-02 14:28:14 +02:00
|
|
|
app:srcCompat="@drawable/ic_close_white_24dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:ignore="ContentDescription,RtlHardcoded" />
|
2020-08-02 22:59:43 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/metadataView"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:layout_marginRight="8dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="top"
|
|
|
|
android:orientation="vertical"
|
|
|
|
tools:ignore="RtlHardcoded">
|
2020-08-02 22:59:43 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/titleTextView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:clickable="true"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:ellipsize="marquee"
|
|
|
|
android:fadingEdge="horizontal"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:focusable="true"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
|
|
android:scrollHorizontally="true"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="15sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
tools:ignore="RtlHardcoded"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:text="The Video Title LONG very LONG" />
|
2020-08-02 22:59:43 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/channelTextView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:clickable="true"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:ellipsize="marquee"
|
|
|
|
android:fadingEdge="horizontal"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:focusable="true"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
|
|
android:scrollHorizontally="true"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="12sp"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:text="The Video Artist LONG very LONG very Long" />
|
2020-08-02 22:59:43 +02:00
|
|
|
</LinearLayout>
|
2017-03-27 06:08:16 +02:00
|
|
|
|
|
|
|
<TextView
|
2020-08-02 22:59:43 +02:00
|
|
|
android:id="@+id/qualityTextView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="35dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:background="?attr/selectableItemBackground"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:gravity="center"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:minWidth="0dp"
|
|
|
|
android:padding="@dimen/player_main_buttons_padding"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:text="720p"
|
2017-03-27 06:08:16 +02:00
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textStyle="bold"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:visibility="visible"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:ignore="HardcodedText,RtlHardcoded" />
|
2017-03-27 06:08:16 +02:00
|
|
|
|
|
|
|
<TextView
|
2020-08-02 22:59:43 +02:00
|
|
|
android:id="@+id/playbackSpeed"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="35dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:background="?attr/selectableItemBackground"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:gravity="center"
|
|
|
|
android:minWidth="0dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:padding="@dimen/player_main_buttons_padding"
|
2017-03-27 06:08:16 +02:00
|
|
|
android:textColor="@android:color/white"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:textStyle="bold"
|
|
|
|
tools:ignore="RtlHardcoded,RtlSymmetry"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:text="1x" />
|
2020-08-02 22:59:43 +02:00
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
android:id="@+id/queueButton"
|
|
|
|
android:layout_width="35dp"
|
|
|
|
android:layout_height="35dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:background="?attr/selectableItemBackground"
|
2017-10-28 21:57:09 +02:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:paddingStart="3dp"
|
|
|
|
android:paddingTop="5dp"
|
|
|
|
android:paddingEnd="3dp"
|
|
|
|
android:paddingBottom="3dp"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:scaleType="fitCenter"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:visibility="gone"
|
2020-08-02 22:59:43 +02:00
|
|
|
app:srcCompat="@drawable/ic_list_white_24dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:ignore="ContentDescription,RtlHardcoded" />
|
2017-10-13 05:47:12 +02:00
|
|
|
|
2020-08-02 22:59:43 +02:00
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
android:id="@+id/moreOptionsButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:padding="@dimen/player_main_buttons_padding"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:scaleType="fitXY"
|
|
|
|
app:srcCompat="@drawable/ic_expand_more_white_24dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:ignore="ContentDescription,RtlHardcoded" />
|
2018-02-07 00:07:49 +01:00
|
|
|
|
2019-12-29 22:15:01 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
2020-08-02 22:59:43 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/secondaryControls"
|
|
|
|
android:layout_width="match_parent"
|
2018-02-03 23:39:03 +01:00
|
|
|
android:layout_height="wrap_content"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:gravity="top"
|
|
|
|
android:visibility="invisible"
|
|
|
|
tools:ignore="RtlHardcoded"
|
|
|
|
tools:visibility="visible">
|
2017-03-27 06:08:16 +02:00
|
|
|
|
2020-08-02 22:59:43 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/resizeTextView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="35dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:background="?attr/selectableItemBackground"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:gravity="center"
|
|
|
|
android:minWidth="50dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:padding="@dimen/player_main_buttons_padding"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textStyle="bold"
|
|
|
|
tools:ignore="HardcodedText,RtlHardcoded"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:text="FIT" />
|
2019-12-29 22:15:01 +01:00
|
|
|
|
2020-10-09 20:24:02 +02:00
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="0dp"
|
2020-09-19 21:52:59 +02:00
|
|
|
android:layout_height="wrap_content"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:layout_weight="3">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/captionTextView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="center|left"
|
|
|
|
android:lines="1"
|
|
|
|
android:minWidth="50dp"
|
|
|
|
android:minHeight="35dp"
|
|
|
|
android:padding="@dimen/player_main_buttons_padding"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textStyle="bold"
|
|
|
|
tools:ignore="RelativeOverlap,RtlHardcoded"
|
|
|
|
tools:text="English" />
|
2020-09-19 21:52:59 +02:00
|
|
|
|
2020-10-09 20:24:02 +02:00
|
|
|
</FrameLayout>
|
2018-02-07 00:07:49 +01:00
|
|
|
|
2020-08-02 22:59:43 +02:00
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
android:id="@+id/playWithKodi"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="35dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:background="?attr/selectableItemBackground"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:clickable="true"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:contentDescription="@string/play_with_kodi_title"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:focusable="true"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:padding="@dimen/player_main_buttons_padding"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:scaleType="fitXY"
|
|
|
|
app:srcCompat="@drawable/ic_cast_white_24dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:ignore="RtlHardcoded" />
|
2019-04-06 20:21:32 +02:00
|
|
|
|
2020-08-02 22:59:43 +02:00
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
android:id="@+id/openInBrowser"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="35dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:background="?attr/selectableItemBackground"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:clickable="true"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:contentDescription="@string/open_in_browser"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:focusable="true"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:padding="@dimen/player_main_buttons_padding"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:scaleType="fitXY"
|
|
|
|
app:srcCompat="@drawable/ic_language_white_24dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:ignore="RtlHardcoded" />
|
2018-02-07 00:07:49 +01:00
|
|
|
|
2020-08-02 22:59:43 +02:00
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
android:id="@+id/share"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="35dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:background="?attr/selectableItemBackground"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:clickable="true"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:contentDescription="@string/share"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:focusable="true"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:padding="@dimen/player_main_buttons_padding"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:scaleType="fitXY"
|
|
|
|
app:srcCompat="@drawable/ic_share_white_24dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:ignore="RtlHardcoded" />
|
2018-02-07 00:07:49 +01:00
|
|
|
|
2020-08-02 22:59:43 +02:00
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
android:id="@+id/switchMute"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="37dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:background="?attr/selectableItemBackground"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:clickable="true"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:contentDescription="@string/mute"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:focusable="true"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:padding="@dimen/player_main_buttons_padding"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:scaleType="fitXY"
|
|
|
|
app:srcCompat="@drawable/ic_volume_off_white_24dp"
|
|
|
|
tools:ignore="RtlHardcoded" />
|
2020-02-23 21:28:40 +01:00
|
|
|
|
2020-10-09 20:24:02 +02:00
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
android:id="@+id/fullScreenButton"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:padding="@dimen/player_main_buttons_padding"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:srcCompat="@drawable/ic_fullscreen_white_24dp"
|
|
|
|
tools:ignore="ContentDescription,RtlHardcoded"
|
|
|
|
tools:visibility="visible" />
|
2020-09-19 21:52:59 +02:00
|
|
|
|
2019-12-29 22:15:01 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-03-27 06:08:16 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/bottomControls"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:gravity="center"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:minHeight="40dp"
|
2017-03-27 06:08:16 +02:00
|
|
|
android:orientation="horizontal"
|
2020-02-05 06:59:30 +01:00
|
|
|
android:paddingLeft="@dimen/player_main_controls_padding"
|
|
|
|
android:paddingRight="@dimen/player_main_controls_padding">
|
2017-03-27 06:08:16 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/playbackCurrentTime"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
2019-12-29 22:15:01 +01:00
|
|
|
android:minHeight="30dp"
|
2017-03-27 06:08:16 +02:00
|
|
|
android:text="-:--:--"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
tools:ignore="HardcodedText"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:text="1:06:29" />
|
2017-03-27 06:08:16 +02:00
|
|
|
|
|
|
|
|
2019-10-04 14:59:08 +02:00
|
|
|
<androidx.appcompat.widget.AppCompatSeekBar
|
2017-03-27 06:08:16 +02:00
|
|
|
android:id="@+id/playbackSeekBar"
|
|
|
|
style="@style/Widget.AppCompat.SeekBar"
|
|
|
|
android:layout_width="0dp"
|
2020-09-11 19:52:38 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginTop="2dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:layout_weight="1"
|
2017-03-27 06:08:16 +02:00
|
|
|
tools:progress="25"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:secondaryProgress="50" />
|
2017-03-27 06:08:16 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/playbackEndTime"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="-:--:--"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
tools:ignore="HardcodedText"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:text="1:23:49" />
|
2018-02-27 04:57:59 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/playbackLiveSync"
|
|
|
|
android:layout_width="wrap_content"
|
2018-03-01 02:45:05 +01:00
|
|
|
android:layout_height="match_parent"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:gravity="center"
|
2018-03-14 04:25:22 +01:00
|
|
|
android:paddingLeft="4dp"
|
|
|
|
android:paddingRight="4dp"
|
Multiple localization fixes
With the extractor PR, fixes title & description shown in the wrong language.
Fixed views / spectators counts possibly in the wrong language
Fixed live spectators not showing full count on detail page
Fixed LIVE shown on players, it shows translated instead
Fixed Videos string in search / three dots not available in Weblate
(because it was videos, but there already was a plural string named videos, in Weblate)
Subscriber count is always giving the short count.
We can't get exact number since this YouTube update: https://support.google.com/youtube/thread/6543166
But only short count (B, M, k), so showing full number, eg for 1.9M: 1,900,000, is wrong because the number could be 1,923,490 or 1,897,789…
Added a « sytem default » option to content language and country language selector.
It's the one selected by default (not en-GB anymore then), and correspond to the
language of the system / country of the system
By system I mean phone, tablet, TV…
Fixed russian showing - before time ago (eg 19hrs ago)
This is a workaround fix, I opened an issue on prettytime library repo.
Fixed russian plurals:
other was used instead of many for videos and subscribers
Fixed seek_duration english only
2020-02-14 18:19:35 +01:00
|
|
|
android:text="@string/duration_live"
|
2018-03-14 04:25:22 +01:00
|
|
|
android:textAllCaps="true"
|
2018-02-27 04:57:59 +01:00
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:ignore="HardcodedText,RtlHardcoded,RtlSymmetry" />
|
2020-01-16 12:20:22 +01:00
|
|
|
|
2020-07-13 03:17:21 +02:00
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
2020-01-16 12:20:22 +01:00
|
|
|
android:id="@+id/screenRotationButton"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:padding="@dimen/player_main_buttons_padding"
|
2020-01-16 12:20:22 +01:00
|
|
|
android:scaleType="fitCenter"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:visibility="gone"
|
2020-07-13 03:17:21 +02:00
|
|
|
app:srcCompat="@drawable/ic_fullscreen_white_24dp"
|
2020-01-16 12:20:22 +01:00
|
|
|
tools:ignore="ContentDescription,RtlHardcoded"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:visibility="visible" />
|
2017-03-27 06:08:16 +02:00
|
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
|
2019-12-29 22:15:01 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:weightSum="5.5">
|
|
|
|
|
2020-08-02 22:59:43 +02:00
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
android:id="@+id/playPreviousButton"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_marginEnd="10dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
app:srcCompat="@drawable/ic_previous_white_24dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:ignore="ContentDescription" />
|
2020-08-02 22:59:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
android:id="@+id/playPauseButton"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="60dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
app:srcCompat="@drawable/ic_pause_white_24dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:ignore="ContentDescription" />
|
2020-08-02 22:59:43 +02:00
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
android:id="@+id/playNextButton"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_marginStart="10dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2020-08-02 22:59:43 +02:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
app:srcCompat="@drawable/ic_next_white_24dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:ignore="ContentDescription" />
|
2017-10-22 21:43:49 +02:00
|
|
|
|
2019-12-29 22:15:01 +01:00
|
|
|
</LinearLayout>
|
2018-12-27 15:29:17 +01:00
|
|
|
|
2017-03-27 06:08:16 +02:00
|
|
|
</RelativeLayout>
|
|
|
|
|
2020-07-25 03:14:29 +02:00
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/playQueuePanel"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="?attr/queue_background_color"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:visibility="gone"
|
2020-07-25 03:14:29 +02:00
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<RelativeLayout
|
2020-10-09 20:24:02 +02:00
|
|
|
android:id="@+id/playQueueControl"
|
2020-07-25 03:14:29 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="60dp"
|
2020-09-29 20:57:49 +02:00
|
|
|
android:clickable="true"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:focusable="true">
|
2020-07-25 03:14:29 +02:00
|
|
|
|
2020-09-19 13:44:07 +02:00
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
2020-07-25 03:14:29 +02:00
|
|
|
android:id="@+id/playQueueClose"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_alignParentEnd="true"
|
2020-09-19 13:44:07 +02:00
|
|
|
android:layout_centerVertical="true"
|
2020-07-25 03:14:29 +02:00
|
|
|
android:layout_marginEnd="40dp"
|
2020-09-19 13:44:07 +02:00
|
|
|
android:background="?android:selectableItemBackground"
|
2020-07-25 03:14:29 +02:00
|
|
|
android:clickable="true"
|
2020-09-19 13:44:07 +02:00
|
|
|
android:contentDescription="@string/close"
|
2020-07-25 03:14:29 +02:00
|
|
|
android:focusable="true"
|
2020-09-19 13:44:07 +02:00
|
|
|
android:padding="10dp"
|
2020-07-25 03:14:29 +02:00
|
|
|
android:scaleType="fitXY"
|
2020-10-02 11:16:10 +02:00
|
|
|
app:srcCompat="?attr/ic_close" />
|
2020-07-25 03:14:29 +02:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/repeatButton"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_alignParentStart="true"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_centerVertical="true"
|
2020-07-25 03:14:29 +02:00
|
|
|
android:layout_marginStart="40dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:layout_marginLeft="40dp"
|
|
|
|
android:background="?android:selectableItemBackground"
|
2020-07-25 03:14:29 +02:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:padding="10dp"
|
2020-07-25 03:14:29 +02:00
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:src="@drawable/exo_controls_repeat_off"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:tint="?attr/colorAccent"
|
|
|
|
tools:ignore="ContentDescription,RtlHardcoded" />
|
2020-07-25 03:14:29 +02:00
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
android:id="@+id/shuffleButton"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_toRightOf="@id/repeatButton"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:background="?android:selectableItemBackground"
|
2020-07-25 03:14:29 +02:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:padding="10dp"
|
2020-07-25 03:14:29 +02:00
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:tint="?attr/colorAccent"
|
|
|
|
app:srcCompat="@drawable/ic_shuffle_white_24dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:ignore="ContentDescription,RtlHardcoded" />
|
2020-07-25 03:14:29 +02:00
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/playQueue"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_below="@id/playQueueControl"
|
|
|
|
android:scrollbars="vertical"
|
|
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:listitem="@layout/play_queue_item" />
|
2020-07-25 03:14:29 +02:00
|
|
|
|
|
|
|
</RelativeLayout>
|
2017-03-27 06:08:16 +02:00
|
|
|
|
|
|
|
<RelativeLayout
|
2020-10-01 02:10:51 +02:00
|
|
|
android:id="@+id/player_overlays"
|
2017-03-27 06:08:16 +02:00
|
|
|
android:layout_width="match_parent"
|
2020-10-01 02:10:51 +02:00
|
|
|
android:layout_height="match_parent">
|
2017-03-27 06:08:16 +02:00
|
|
|
|
2020-10-01 02:10:51 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/controlAnimationView"
|
|
|
|
android:layout_width="100dp"
|
|
|
|
android:layout_height="100dp"
|
|
|
|
android:background="@drawable/background_oval_black_transparent"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:padding="15dp"
|
2020-10-01 02:10:51 +02:00
|
|
|
android:visibility="gone"
|
|
|
|
tools:ignore="ContentDescription"
|
|
|
|
tools:src="@drawable/ic_fast_rewind_white_24dp"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
</LinearLayout>
|
2017-03-27 06:08:16 +02:00
|
|
|
|
2018-08-15 11:02:37 +02:00
|
|
|
<RelativeLayout
|
2020-10-01 02:10:51 +02:00
|
|
|
android:id="@+id/loading_panel"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@android:color/black"
|
|
|
|
tools:visibility="gone">
|
2018-08-15 11:02:37 +02:00
|
|
|
|
|
|
|
<ProgressBar
|
2020-10-01 02:10:51 +02:00
|
|
|
android:id="@+id/progressBarLoadingPanel"
|
|
|
|
style="?android:attr/progressBarStyleLargeInverse"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-08-15 11:02:37 +02:00
|
|
|
android:layout_centerInParent="true"
|
2020-10-01 02:10:51 +02:00
|
|
|
android:indeterminate="true" />
|
2018-08-15 11:02:37 +02:00
|
|
|
</RelativeLayout>
|
2017-03-27 06:08:16 +02:00
|
|
|
|
2018-08-15 11:02:37 +02:00
|
|
|
<RelativeLayout
|
2020-10-01 02:10:51 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
tools:ignore="RtlHardcoded">
|
2018-08-15 11:02:37 +02:00
|
|
|
|
2020-10-01 02:10:51 +02:00
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/volumeRelativeLayout"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-08-15 11:02:37 +02:00
|
|
|
android:layout_centerInParent="true"
|
2020-10-01 02:10:51 +02:00
|
|
|
android:background="@drawable/background_oval_black_transparent"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/volumeProgressBar"
|
|
|
|
style="?android:progressBarStyleHorizontal"
|
|
|
|
android:layout_width="128dp"
|
|
|
|
android:layout_height="128dp"
|
|
|
|
android:indeterminate="false"
|
|
|
|
android:progressDrawable="@drawable/progress_circular_white" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/volumeImageView"
|
|
|
|
android:layout_width="70dp"
|
|
|
|
android:layout_height="70dp"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
tools:ignore="ContentDescription"
|
|
|
|
tools:src="@drawable/ic_volume_up_white_24dp" />
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/brightnessRelativeLayout"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:background="@drawable/background_oval_black_transparent"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/brightnessProgressBar"
|
|
|
|
style="?android:progressBarStyleHorizontal"
|
|
|
|
android:layout_width="128dp"
|
|
|
|
android:layout_height="128dp"
|
|
|
|
android:indeterminate="false"
|
|
|
|
android:progressDrawable="@drawable/progress_circular_white" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/brightnessImageView"
|
|
|
|
android:layout_width="70dp"
|
|
|
|
android:layout_height="70dp"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
tools:ignore="ContentDescription"
|
|
|
|
tools:src="@drawable/ic_brightness_high_white_24dp" />
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/currentDisplaySeek"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_marginBottom="58dp"
|
|
|
|
android:background="#64000000"
|
|
|
|
android:paddingLeft="30dp"
|
|
|
|
android:paddingTop="10dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:paddingRight="30dp"
|
|
|
|
android:paddingBottom="10dp"
|
2020-10-01 02:10:51 +02:00
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="26sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:ignore="RtlHardcoded"
|
|
|
|
tools:text="1:06:29"
|
|
|
|
tools:visibility="visible" />
|
2018-08-15 11:02:37 +02:00
|
|
|
</RelativeLayout>
|
2017-03-27 06:08:16 +02:00
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
2019-12-29 22:15:01 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/resizing_indicator"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="left|top"
|
|
|
|
android:background="#6e000000"
|
|
|
|
android:gravity="center"
|
|
|
|
android:padding="5dp"
|
|
|
|
android:text="@string/popup_resizing_indicator_title"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="18sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:ignore="RtlHardcoded"
|
|
|
|
tools:visibility="gone" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/closingOverlay"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="#AAFF0000"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/closeButton"
|
|
|
|
style="@style/Widget.AppCompat.Button.Borderless"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:text="@string/close"
|
|
|
|
android:textAllCaps="true"
|
|
|
|
android:textColor="@color/white"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
2017-11-09 11:29:02 +01:00
|
|
|
</RelativeLayout>
|