1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-16 14:54:57 +00:00
NewPipe/app/src/main/res/layout/player.xml

755 lines
34 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2020-10-09 18:24:02 +00:00
<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:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/black"
2021-03-27 14:45:49 +00:00
android:gravity="center"
android:theme="@style/WhiteTintTheme">
<org.schabi.newpipe.views.ExpandableSurfaceView
android:id="@+id/surfaceView"
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-10-09 18:24:02 +00:00
android:layout_centerInParent="true" />
<View
android:id="@+id/surfaceForeground"
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-10-09 18:24:02 +00:00
android:layout_alignBottom="@+id/surfaceView"
android:background="@android:color/black" />
<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 18:24:02 +00:00
android:layout_gravity="center" />
2020-09-15 16:50:46 +00:00
<View
android:id="@+id/playerTopShadow"
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_alignParentTop="true"
2020-10-09 18:24:02 +00:00
android:background="@drawable/player_controls_top_background"
android:visibility="gone" />
2020-09-15 16:50:46 +00:00
<View
android:id="@+id/playerBottomShadow"
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_alignParentBottom="true"
2020-10-09 18:24:02 +00:00
android:background="@drawable/player_controls_background"
android:visibility="gone" />
2020-09-15 16:50:46 +00: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 18:24:02 +00:00
tools:visibility="visible" />
<RelativeLayout
android:id="@+id/playbackControlRoot"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/video_overlay_color"
2020-10-09 18:24:02 +00:00
android:fitsSystemWindows="true"
android:visibility="gone"
tools:visibility="visible">
<!-- All top controls in this layout -->
<RelativeLayout
android:id="@+id/playbackWindowRoot"
android:layout_width="match_parent"
2020-09-13 23:46:00 +00:00
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/topControls"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
2020-10-09 18:24:02 +00:00
android:baselineAligned="false"
android:gravity="top"
2020-10-09 18:24:02 +00:00
android:orientation="vertical"
android:paddingStart="@dimen/player_main_controls_padding"
2020-10-09 18:24:02 +00:00
android:paddingTop="@dimen/player_main_top_padding"
android:paddingEnd="@dimen/player_main_controls_padding">
<LinearLayout
2020-08-02 20:59:43 +00:00
android:id="@+id/primaryControls"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-08-02 20:59:43 +00:00
android:baselineAligned="false"
android:gravity="top"
2020-10-09 18:24:02 +00:00
android:minHeight="45dp"
2020-08-02 20:59:43 +00:00
tools:ignore="RtlHardcoded">
<androidx.appcompat.widget.AppCompatImageButton
2020-08-02 20:59:43 +00:00
android:id="@+id/playerCloseButton"
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_marginEnd="8dp"
2020-10-09 18:24:02 +00:00
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:focusable="true"
2020-10-09 18:24:02 +00:00
android:padding="@dimen/player_main_buttons_padding"
2020-08-02 20:59:43 +00:00
android:scaleType="fitXY"
2020-10-09 18:24:02 +00:00
android:visibility="gone"
2021-03-27 14:45:49 +00:00
app:srcCompat="@drawable/ic_close"
app:tint="@color/white"
2020-10-09 18:24:02 +00:00
tools:ignore="ContentDescription,RtlHardcoded" />
2020-08-02 20:59:43 +00: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 18:24:02 +00:00
android:layout_weight="1"
android:gravity="top"
android:orientation="vertical"
tools:ignore="RtlHardcoded">
2020-08-02 20:59:43 +00:00
<TextView
android:id="@+id/titleTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-10-09 18:24:02 +00:00
android:clickable="true"
2020-08-02 20:59:43 +00:00
android:ellipsize="marquee"
android:fadingEdge="horizontal"
2020-10-09 18:24:02 +00:00
android:focusable="true"
2020-08-02 20:59:43 +00: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 18:24:02 +00:00
tools:text="The Video Title LONG very LONG" />
2020-08-02 20:59:43 +00:00
<TextView
android:id="@+id/channelTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-10-09 18:24:02 +00:00
android:clickable="true"
2020-08-02 20:59:43 +00:00
android:ellipsize="marquee"
android:fadingEdge="horizontal"
2020-10-09 18:24:02 +00:00
android:focusable="true"
2020-08-02 20:59:43 +00:00
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:singleLine="true"
android:textColor="@android:color/white"
android:textSize="12sp"
2020-10-09 18:24:02 +00:00
tools:text="The Video Artist LONG very LONG very Long" />
2020-08-02 20:59:43 +00:00
</LinearLayout>
<TextView
2020-08-02 20:59:43 +00:00
android:id="@+id/qualityTextView"
android:layout_width="wrap_content"
android:layout_height="35dp"
android:layout_marginEnd="8dp"
2020-10-09 18:24:02 +00:00
android:background="?attr/selectableItemBackground"
2020-08-02 20:59:43 +00:00
android:gravity="center"
2020-10-09 18:24:02 +00:00
android:minWidth="0dp"
android:padding="@dimen/player_main_buttons_padding"
android:textColor="@android:color/white"
android:textStyle="bold"
2021-01-14 09:11:44 +00:00
tools:ignore="HardcodedText,RtlHardcoded"
tools:text="720p" />
<TextView
2020-08-02 20:59:43 +00:00
android:id="@+id/playbackSpeed"
android:layout_width="wrap_content"
android:layout_height="35dp"
android:layout_marginEnd="8dp"
android:background="?attr/selectableItemBackgroundBorderless"
2020-08-02 20:59:43 +00:00
android:gravity="center"
android:minWidth="0dp"
2020-10-09 18:24:02 +00:00
android:padding="@dimen/player_main_buttons_padding"
android:textColor="@android:color/white"
2020-08-02 20:59:43 +00:00
android:textStyle="bold"
tools:ignore="RtlHardcoded,RtlSymmetry"
2020-10-09 18:24:02 +00:00
tools:text="1x" />
2020-08-02 20:59:43 +00:00
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/queueButton"
android:layout_width="35dp"
android:layout_height="35dp"
android:layout_marginEnd="8dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:focusable="true"
2020-10-09 18:24:02 +00:00
android:paddingStart="3dp"
android:paddingTop="5dp"
android:paddingEnd="3dp"
android:paddingBottom="3dp"
2020-08-02 20:59:43 +00:00
android:scaleType="fitCenter"
2020-10-09 18:24:02 +00:00
android:visibility="gone"
2021-03-27 14:45:49 +00:00
app:srcCompat="@drawable/ic_list"
app:tint="@color/white"
2020-10-09 18:24:02 +00:00
tools:ignore="ContentDescription,RtlHardcoded" />
2021-01-14 20:58:19 +00:00
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/segmentsButton"
android:layout_width="35dp"
android:layout_height="35dp"
android:layout_marginEnd="8dp"
android:background="?attr/selectableItemBackgroundBorderless"
2021-01-14 20:58:19 +00:00
android:clickable="true"
android:focusable="true"
android:paddingStart="6dp"
android:paddingTop="5dp"
android:paddingEnd="6dp"
android:paddingBottom="3dp"
android:scaleType="fitCenter"
android:visibility="gone"
2021-03-27 14:45:49 +00:00
app:srcCompat="@drawable/ic_format_list_numbered"
app:tint="@color/white"
2021-01-14 20:58:19 +00:00
tools:ignore="ContentDescription,RtlHardcoded" />
2020-08-02 20:59:43 +00:00
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/moreOptionsButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-10-09 18:24:02 +00:00
android:background="?attr/selectableItemBackgroundBorderless"
2020-08-02 20:59:43 +00:00
android:clickable="true"
android:focusable="true"
2020-10-09 18:24:02 +00:00
android:padding="@dimen/player_main_buttons_padding"
2020-08-02 20:59:43 +00:00
android:scaleType="fitXY"
2021-03-27 14:45:49 +00:00
app:srcCompat="@drawable/ic_expand_more"
app:tint="@color/white"
2020-10-09 18:24:02 +00:00
tools:ignore="ContentDescription,RtlHardcoded" />
</LinearLayout>
2020-08-02 20:59:43 +00:00
<LinearLayout
android:id="@+id/secondaryControls"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-08-02 20:59:43 +00:00
android:gravity="top"
android:visibility="invisible"
tools:ignore="RtlHardcoded"
tools:visibility="visible">
2020-08-02 20:59:43 +00:00
<TextView
android:id="@+id/resizeTextView"
android:layout_width="wrap_content"
android:layout_height="35dp"
android:layout_marginEnd="8dp"
2020-10-09 18:24:02 +00:00
android:background="?attr/selectableItemBackground"
2020-08-02 20:59:43 +00:00
android:gravity="center"
android:minWidth="50dp"
2020-10-09 18:24:02 +00:00
android:padding="@dimen/player_main_buttons_padding"
2020-08-02 20:59:43 +00:00
android:textColor="@android:color/white"
android:textStyle="bold"
tools:ignore="HardcodedText,RtlHardcoded"
2020-10-09 18:24:02 +00:00
tools:text="FIT" />
2020-10-09 18:24:02 +00:00
<FrameLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
2020-10-09 18:24:02 +00: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-10-09 18:24:02 +00:00
</FrameLayout>
2020-08-02 20:59:43 +00:00
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/playWithKodi"
android:layout_width="wrap_content"
android:layout_height="35dp"
android:layout_marginEnd="8dp"
android:background="?attr/selectableItemBackgroundBorderless"
2020-08-02 20:59:43 +00:00
android:clickable="true"
2020-10-09 18:24:02 +00:00
android:contentDescription="@string/play_with_kodi_title"
2020-08-02 20:59:43 +00:00
android:focusable="true"
2020-10-09 18:24:02 +00:00
android:padding="@dimen/player_main_buttons_padding"
2020-08-02 20:59:43 +00:00
android:scaleType="fitXY"
2021-03-27 14:45:49 +00:00
app:srcCompat="@drawable/ic_cast"
app:tint="@color/white"
2020-10-09 18:24:02 +00:00
tools:ignore="RtlHardcoded" />
2020-08-02 20:59:43 +00:00
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/openInBrowser"
android:layout_width="wrap_content"
android:layout_height="35dp"
android:layout_marginEnd="8dp"
android:background="?attr/selectableItemBackgroundBorderless"
2020-08-02 20:59:43 +00:00
android:clickable="true"
2020-10-09 18:24:02 +00:00
android:contentDescription="@string/open_in_browser"
2020-08-02 20:59:43 +00:00
android:focusable="true"
2020-10-09 18:24:02 +00:00
android:padding="@dimen/player_main_buttons_padding"
2020-08-02 20:59:43 +00:00
android:scaleType="fitXY"
2021-03-27 14:45:49 +00:00
app:srcCompat="@drawable/ic_language"
app:tint="@color/white"
2020-10-09 18:24:02 +00:00
tools:ignore="RtlHardcoded" />
2020-08-02 20:59:43 +00:00
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/share"
android:layout_width="wrap_content"
android:layout_height="35dp"
android:layout_marginEnd="8dp"
android:background="?attr/selectableItemBackgroundBorderless"
2020-08-02 20:59:43 +00:00
android:clickable="true"
2020-10-09 18:24:02 +00:00
android:contentDescription="@string/share"
2020-08-02 20:59:43 +00:00
android:focusable="true"
2020-10-09 18:24:02 +00:00
android:padding="@dimen/player_main_buttons_padding"
2020-08-02 20:59:43 +00:00
android:scaleType="fitXY"
2021-03-27 14:45:49 +00:00
app:srcCompat="@drawable/ic_share"
app:tint="@color/white"
2020-10-09 18:24:02 +00:00
tools:ignore="RtlHardcoded" />
2020-08-02 20:59:43 +00:00
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/switchMute"
android:layout_width="wrap_content"
android:layout_height="37dp"
android:background="?attr/selectableItemBackgroundBorderless"
2020-08-02 20:59:43 +00:00
android:clickable="true"
2020-10-09 18:24:02 +00:00
android:contentDescription="@string/mute"
2020-08-02 20:59:43 +00:00
android:focusable="true"
2020-10-09 18:24:02 +00:00
android:padding="@dimen/player_main_buttons_padding"
2020-08-02 20:59:43 +00:00
android:scaleType="fitXY"
2021-03-27 14:45:49 +00:00
app:srcCompat="@drawable/ic_volume_off"
app:tint="@color/white"
2020-08-02 20:59:43 +00:00
tools:ignore="RtlHardcoded" />
2020-10-09 18:24:02 +00:00
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/fullScreenButton"
android:layout_width="40dp"
android:layout_height="40dp"
android:background="?attr/selectableItemBackgroundBorderless"
2020-10-09 18:24:02 +00:00
android:clickable="true"
android:focusable="true"
android:padding="@dimen/player_main_buttons_padding"
android:scaleType="fitCenter"
android:visibility="gone"
2021-03-27 14:45:49 +00:00
app:srcCompat="@drawable/ic_fullscreen"
app:tint="@color/white"
2020-10-09 18:24:02 +00:00
tools:ignore="ContentDescription,RtlHardcoded"
tools:visibility="visible" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/bottomSeekbarPreviewLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@id/bottomControls"
android:orientation="horizontal">
<LinearLayout
android:id="@+id/seekbarPreviewContainer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical"
2021-07-06 20:25:00 +00:00
android:paddingBottom="12dp">
<TextView
android:id="@+id/currentDisplaySeek"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#60000000"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:paddingBottom="2dp"
android:textColor="@android:color/white"
2021-06-15 17:51:42 +00:00
android:textSize="18sp"
android:textStyle="bold"
android:visibility="gone"
tools:ignore="RtlHardcoded"
tools:text="1:06:29"
tools:visibility="visible" />
2021-07-06 19:14:24 +00:00
<ImageView
android:id="@+id/currentSeekbarPreviewThumbnail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="2dp"
android:visibility="gone"
app:srcCompat="@drawable/dummy_thumbnail"
tools:visibility="visible" />
</LinearLayout>
</LinearLayout>
<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 18:24:02 +00:00
android:minHeight="40dp"
android:orientation="horizontal"
android:paddingLeft="@dimen/player_main_controls_padding"
android:paddingRight="@dimen/player_main_controls_padding">
<TextView
android:id="@+id/playbackCurrentTime"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:minHeight="30dp"
android:text="-:--:--"
android:textColor="@android:color/white"
tools:ignore="HardcodedText"
2020-10-09 18:24:02 +00:00
tools:text="1:06:29" />
2021-01-14 09:11:44 +00:00
<org.schabi.newpipe.views.FocusAwareSeekBar
android:id="@+id/playbackSeekBar"
style="@style/Widget.AppCompat.SeekBar"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="2dp"
2020-10-09 18:24:02 +00:00
android:layout_weight="1"
tools:progress="25"
2020-10-09 18:24:02 +00:00
tools:secondaryProgress="50" />
<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 18:24:02 +00:00
tools:text="1:23:49" />
<TextView
android:id="@+id/playbackLiveSync"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?attr/selectableItemBackgroundBorderless"
2020-10-09 18:24:02 +00:00
android:gravity="center"
android:paddingLeft="4dp"
android:paddingRight="4dp"
android:text="@string/duration_live"
android:textAllCaps="true"
android:textColor="@android:color/white"
android:visibility="gone"
tools:ignore="HardcodedText,RtlHardcoded,RtlSymmetry" />
2020-07-13 01:17:21 +00:00
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/screenRotationButton"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginStart="4dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:focusable="true"
2020-10-09 18:24:02 +00:00
android:padding="@dimen/player_main_buttons_padding"
android:scaleType="fitCenter"
2020-10-09 18:24:02 +00:00
android:visibility="gone"
app:tint="@color/white"
2021-03-27 14:45:49 +00:00
app:srcCompat="@drawable/ic_fullscreen"
tools:ignore="ContentDescription,RtlHardcoded"
2020-10-09 18:24:02 +00:00
tools:visibility="visible" />
</LinearLayout>
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="horizontal"
android:weightSum="5.5">
2020-08-02 20:59:43 +00:00
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/playPreviousButton"
android:layout_width="0dp"
android:layout_height="40dp"
android:layout_marginEnd="10dp"
2020-10-09 18:24:02 +00:00
android:layout_weight="1"
android:background="?attr/selectableItemBackgroundBorderless"
2020-08-02 20:59:43 +00:00
android:clickable="true"
android:focusable="true"
android:scaleType="fitCenter"
app:tint="@color/white"
2021-03-27 14:45:49 +00:00
app:srcCompat="@drawable/ic_previous"
2020-10-09 18:24:02 +00:00
tools:ignore="ContentDescription" />
2020-08-02 20:59:43 +00: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:tint="@color/white"
2021-03-27 14:45:49 +00:00
app:srcCompat="@drawable/ic_pause"
2020-10-09 18:24:02 +00:00
tools:ignore="ContentDescription" />
2020-08-02 20:59:43 +00:00
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/playNextButton"
android:layout_width="0dp"
android:layout_height="40dp"
android:layout_marginStart="10dp"
2020-10-09 18:24:02 +00:00
android:layout_weight="1"
android:background="?attr/selectableItemBackgroundBorderless"
2020-08-02 20:59:43 +00:00
android:clickable="true"
android:focusable="true"
android:scaleType="fitCenter"
app:tint="@color/white"
2021-03-27 14:45:49 +00:00
app:srcCompat="@drawable/ic_next"
2020-10-09 18:24:02 +00:00
tools:ignore="ContentDescription" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout
2021-01-14 20:58:19 +00:00
android:id="@+id/itemsListPanel"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/queue_background_color"
2020-10-09 18:24:02 +00:00
android:visibility="gone"
tools:visibility="visible">
<RelativeLayout
2021-01-14 20:58:19 +00:00
android:id="@+id/itemsListControl"
android:layout_width="match_parent"
android:layout_height="60dp"
android:clickable="true"
2020-10-09 18:24:02 +00:00
android:focusable="true">
2021-01-14 20:58:19 +00:00
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/itemsListHeaderTitle"
style="@style/TextAppearance.AppCompat.Medium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignEnd="@id/itemsListClose"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:layout_marginStart="16dp"
android:layout_marginEnd="56dp"
android:ellipsize="end"
android:maxLines="2"
android:text="@string/chapters"
android:textColor="@android:color/white"
android:visibility="gone" />
2020-09-19 11:44:07 +00:00
<androidx.appcompat.widget.AppCompatImageButton
2021-01-14 20:58:19 +00:00
android:id="@+id/itemsListClose"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentEnd="true"
2020-09-19 11:44:07 +00:00
android:layout_centerVertical="true"
android:layout_marginEnd="40dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
2020-09-19 11:44:07 +00:00
android:contentDescription="@string/close"
android:focusable="true"
2020-09-19 11:44:07 +00:00
android:padding="10dp"
android:scaleType="fitXY"
app:tint="@color/white"
2021-03-27 14:45:49 +00:00
app:srcCompat="@drawable/ic_close" />
2021-03-28 19:04:54 +00:00
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/repeatButton"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentStart="true"
2020-10-09 18:24:02 +00:00
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginStart="40dp"
2020-10-09 18:24:02 +00:00
android:layout_marginLeft="40dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:focusable="true"
2020-10-09 18:24:02 +00:00
android:padding="10dp"
android:scaleType="fitXY"
2020-10-09 18:24:02 +00:00
android:tint="?attr/colorAccent"
2021-03-28 19:04:54 +00:00
app:srcCompat="@drawable/exo_controls_repeat_off"
2020-10-09 18:24:02 +00:00
tools:ignore="ContentDescription,RtlHardcoded" />
<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"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:focusable="true"
2020-10-09 18:24:02 +00:00
android:padding="10dp"
android:scaleType="fitXY"
android:tint="?attr/colorAccent"
2021-03-27 14:45:49 +00:00
app:srcCompat="@drawable/ic_shuffle"
2020-10-09 18:24:02 +00:00
tools:ignore="ContentDescription,RtlHardcoded" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/itemsListHeaderDuration"
style="@style/TextAppearance.AppCompat.Medium"
android:gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toEndOf="@id/shuffleButton"
android:layout_toStartOf="@id/itemsListClose"
android:textColor="@android:color/white" />
</RelativeLayout>
<androidx.recyclerview.widget.RecyclerView
2021-01-14 20:58:19 +00:00
android:id="@+id/itemsList"
android:layout_width="match_parent"
android:layout_height="match_parent"
2021-01-14 20:58:19 +00:00
android:layout_below="@id/itemsListControl"
android:scrollbars="vertical"
android:theme="@style/PlayQueueItemTextTheme"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
2020-10-09 18:24:02 +00:00
tools:listitem="@layout/play_queue_item" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/player_overlays"
android:layout_width="match_parent"
android:layout_height="match_parent">
<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 18:24:02 +00:00
android:padding="15dp"
android:visibility="gone"
tools:ignore="ContentDescription"
2021-03-27 14:45:49 +00:00
tools:src="@drawable/ic_fast_rewind"
tools:visibility="visible" />
</LinearLayout>
<RelativeLayout
android:id="@+id/loading_panel"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/black"
tools:visibility="gone">
<ProgressBar
android:id="@+id/progressBarLoadingPanel"
style="?android:attr/progressBarStyleLargeInverse"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:indeterminate="true" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
tools:ignore="RtlHardcoded">
<RelativeLayout
android:id="@+id/volumeRelativeLayout"
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/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"
2021-03-27 14:45:49 +00:00
tools:src="@drawable/ic_volume_up" />
</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" />
</RelativeLayout>
</RelativeLayout>
</RelativeLayout>
<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" />
</RelativeLayout>