2017-03-27 04:08:16 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2017-08-29 00:38:37 +00:00
|
|
|
<RelativeLayout
|
2017-03-09 04:44:00 +00:00
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-03-27 04:08:16 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2017-03-09 04:44:00 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2017-10-13 03:47:12 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2017-03-27 04:08:16 +00:00
|
|
|
android:background="@android:color/black"
|
2017-05-14 03:32:28 +00:00
|
|
|
android:gravity="center">
|
2017-03-09 04:44:00 +00:00
|
|
|
|
2017-03-27 04:08:16 +00:00
|
|
|
<com.google.android.exoplayer2.ui.AspectRatioFrameLayout
|
|
|
|
android:id="@+id/aspectRatioLayout"
|
2017-03-09 04:44:00 +00:00
|
|
|
android:layout_width="match_parent"
|
2017-03-27 04:08:16 +00:00
|
|
|
android:layout_height="match_parent"
|
2017-09-03 02:30:34 +00:00
|
|
|
android:layout_centerInParent="true"
|
2017-03-27 04:08:16 +00:00
|
|
|
android:layout_gravity="center">
|
2017-03-09 04:44:00 +00:00
|
|
|
|
2017-03-27 04:08:16 +00:00
|
|
|
<SurfaceView
|
|
|
|
android:id="@+id/surfaceView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"/>
|
|
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/surfaceForeground"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@android:color/black"/>
|
|
|
|
|
|
|
|
</com.google.android.exoplayer2.ui.AspectRatioFrameLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/endScreen"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:scaleType="centerInside"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:background="@android:color/white"
|
|
|
|
tools:ignore="ContentDescription"
|
|
|
|
tools:visibility="visible"/>
|
|
|
|
|
2017-10-13 03:47:12 +00:00
|
|
|
<RelativeLayout
|
2017-10-23 01:58:01 +00:00
|
|
|
android:id="@+id/playQueuePanel"
|
2017-10-13 03:47:12 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="#64000000"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
2017-10-23 01:58:01 +00:00
|
|
|
<RelativeLayout
|
2017-10-13 03:47:12 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="60dp"
|
2017-10-23 01:58:01 +00:00
|
|
|
android:id="@+id/playQueueControl">
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/playQueueClose"
|
2017-10-25 04:47:14 +00:00
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
2017-10-23 01:58:01 +00:00
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_marginRight="40dp"
|
|
|
|
android:layout_marginEnd="40dp"
|
2017-10-25 04:47:14 +00:00
|
|
|
android:padding="10dp"
|
2017-10-23 01:58:01 +00:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:src="@drawable/ic_close_white_24dp"
|
|
|
|
android:background="?android:selectableItemBackground"
|
|
|
|
tools:ignore="ContentDescription"/>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/repeatButton"
|
2017-10-25 04:47:14 +00:00
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
2017-10-23 01:58:01 +00:00
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_marginLeft="40dp"
|
|
|
|
android:layout_marginStart="40dp"
|
2017-10-25 04:47:14 +00:00
|
|
|
android:padding="10dp"
|
2017-10-23 01:58:01 +00:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:src="@drawable/exo_controls_repeat_off"
|
|
|
|
android:background="?android:selectableItemBackground"
|
|
|
|
tools:ignore="ContentDescription,RtlHardcoded"/>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/shuffleButton"
|
2017-10-25 04:47:14 +00:00
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
2017-10-23 01:58:01 +00:00
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_toRightOf="@id/repeatButton"
|
2017-10-25 04:47:14 +00:00
|
|
|
android:padding="10dp"
|
2017-10-23 01:58:01 +00:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:src="@drawable/ic_shuffle_white_24dp"
|
|
|
|
android:background="?android:selectableItemBackground"
|
|
|
|
tools:ignore="ContentDescription,RtlHardcoded"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
|
2017-10-13 03:47:12 +00:00
|
|
|
|
|
|
|
<android.support.v7.widget.RecyclerView
|
2017-10-23 01:58:01 +00:00
|
|
|
android:id="@+id/playQueue"
|
2017-10-13 03:47:12 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2017-10-23 01:58:01 +00:00
|
|
|
android:layout_below="@id/playQueueControl"
|
2017-10-13 03:47:12 +00:00
|
|
|
android:scrollbars="vertical"
|
|
|
|
app:layoutManager="LinearLayoutManager"
|
|
|
|
tools:listitem="@layout/play_queue_item"/>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
2017-03-27 04:08:16 +00:00
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/playbackControlRoot"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="#64000000"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:fitsSystemWindows="true">
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/topControls"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:background="@drawable/player_top_controls_bg"
|
|
|
|
android:gravity="top"
|
|
|
|
android:paddingBottom="70dp"
|
|
|
|
android:paddingLeft="2dp"
|
|
|
|
android:paddingRight="10dp"
|
|
|
|
android:paddingTop="10dp"
|
|
|
|
tools:ignore="RtlHardcoded">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_toLeftOf="@+id/qualityTextView"
|
|
|
|
android:gravity="top"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingLeft="8dp"
|
|
|
|
android:paddingRight="8dp"
|
|
|
|
tools:ignore="RtlHardcoded">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/titleTextView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="15sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
tools:ignore="RtlHardcoded"
|
|
|
|
tools:text="The Video Title LONG very LONG"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/channelTextView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="12sp"
|
|
|
|
tools:text="The Video Artist LONG very LONG very Long"/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/qualityTextView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="35dp"
|
2017-03-27 13:12:22 +00:00
|
|
|
android:layout_marginLeft="2dp"
|
2017-03-27 04:08:16 +00:00
|
|
|
android:layout_marginRight="2dp"
|
2017-06-26 02:41:52 +00:00
|
|
|
android:layout_toLeftOf="@+id/playbackSpeed"
|
2017-03-27 04:08:16 +00:00
|
|
|
android:gravity="center"
|
|
|
|
android:minWidth="50dp"
|
|
|
|
android:text="720p"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textStyle="bold"
|
|
|
|
tools:ignore="HardcodedText,RtlHardcoded"/>
|
|
|
|
|
2017-06-26 02:41:52 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/playbackSpeed"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginRight="2dp"
|
|
|
|
android:layout_toLeftOf="@+id/screenRotationButton"
|
|
|
|
android:gravity="center"
|
|
|
|
android:minHeight="35dp"
|
|
|
|
android:minWidth="40dp"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textStyle="bold"
|
|
|
|
tools:ignore="RtlHardcoded,RtlSymmetry"
|
|
|
|
tools:text="1x" />
|
|
|
|
|
2017-03-27 13:12:22 +00:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/screenRotationButton"
|
|
|
|
android:layout_width="35dp"
|
|
|
|
android:layout_height="35dp"
|
|
|
|
android:layout_marginLeft="2dp"
|
|
|
|
android:layout_marginRight="2dp"
|
2017-10-23 01:58:01 +00:00
|
|
|
android:layout_toLeftOf="@+id/queueButton"
|
2017-03-27 13:12:22 +00:00
|
|
|
android:background="#00ffffff"
|
|
|
|
android:clickable="true"
|
2017-10-13 03:47:12 +00:00
|
|
|
android:focusable="true"
|
2017-03-27 13:12:22 +00:00
|
|
|
android:padding="8dp"
|
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:src="@drawable/ic_screen_rotation_white"
|
|
|
|
tools:ignore="ContentDescription,RtlHardcoded"/>
|
|
|
|
|
2017-10-13 03:47:12 +00:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/queueButton"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="35dp"
|
|
|
|
android:layout_marginLeft="2dp"
|
|
|
|
android:layout_marginRight="2dp"
|
|
|
|
android:layout_toLeftOf="@+id/fullScreenButton"
|
|
|
|
android:background="#00ffffff"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:padding="5dp"
|
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:src="@drawable/list"
|
|
|
|
tools:ignore="ContentDescription,RtlHardcoded"/>
|
|
|
|
|
2017-03-27 04:08:16 +00:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/fullScreenButton"
|
|
|
|
android:layout_width="35dp"
|
|
|
|
android:layout_height="35dp"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_marginLeft="4dp"
|
|
|
|
android:background="#00ffffff"
|
|
|
|
android:clickable="true"
|
2017-10-13 03:47:12 +00:00
|
|
|
android:focusable="true"
|
2017-03-27 04:08:16 +00:00
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:src="@drawable/ic_fullscreen_exit_white"
|
|
|
|
tools:ignore="ContentDescription,RtlHardcoded"/>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/bottomControls"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:background="@drawable/player_controls_bg"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingRight="16dp">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/playbackCurrentTime"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:minHeight="40dp"
|
|
|
|
android:text="-:--:--"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
tools:ignore="HardcodedText"
|
|
|
|
tools:text="1:06:29"/>
|
|
|
|
|
|
|
|
|
|
|
|
<android.support.v7.widget.AppCompatSeekBar
|
|
|
|
android:id="@+id/playbackSeekBar"
|
|
|
|
style="@style/Widget.AppCompat.SeekBar"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:paddingBottom="4dp"
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
tools:progress="25"
|
|
|
|
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"
|
|
|
|
tools:text="1:23:49"/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/playPauseButton"
|
|
|
|
android:layout_width="100dp"
|
|
|
|
android:layout_height="100dp"
|
|
|
|
android:layout_centerInParent="true"
|
2017-10-25 04:47:14 +00:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2017-03-27 04:08:16 +00:00
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:src="@drawable/ic_pause_white"
|
|
|
|
tools:ignore="ContentDescription"/>
|
|
|
|
|
2017-10-22 19:43:49 +00:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/playPreviousButton"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_marginRight="30dp"
|
|
|
|
android:layout_marginEnd="30dp"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_toLeftOf="@id/playPauseButton"
|
|
|
|
android:layout_toStartOf="@id/playPauseButton"
|
2017-10-25 04:47:14 +00:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2017-10-22 19:43:49 +00:00
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:src="@drawable/exo_controls_previous"
|
|
|
|
tools:ignore="ContentDescription"/>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/playNextButton"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_marginLeft="30dp"
|
|
|
|
android:layout_marginStart="30dp"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_toRightOf="@id/playPauseButton"
|
|
|
|
android:layout_toEndOf="@id/playPauseButton"
|
2017-10-25 04:47:14 +00:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2017-10-22 19:43:49 +00:00
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:src="@drawable/exo_controls_next"
|
|
|
|
tools:ignore="ContentDescription"/>
|
|
|
|
|
2017-03-27 04:08:16 +00:00
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<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:src="@drawable/ic_action_av_fast_rewind"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:ignore="ContentDescription"
|
|
|
|
tools:visibility="visible"/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<RelativeLayout
|
2017-04-26 19:24:33 +00:00
|
|
|
android:id="@+id/loading_panel"
|
2017-03-27 04:08:16 +00:00
|
|
|
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">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/volumeTextView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:background="#64000000"
|
|
|
|
android:paddingBottom="10dp"
|
|
|
|
android:paddingLeft="30dp"
|
|
|
|
android:paddingRight="30dp"
|
|
|
|
android:paddingTop="10dp"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="35sp"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:ignore="RtlHardcoded"
|
|
|
|
tools:text="Volume 0"
|
|
|
|
tools:visibility="visible"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/brightnessTextView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
android:background="#64000000"
|
|
|
|
android:paddingBottom="10dp"
|
|
|
|
android:paddingLeft="30dp"
|
|
|
|
android:paddingRight="30dp"
|
|
|
|
android:paddingTop="10dp"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="35sp"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:ignore="RtlHardcoded"
|
|
|
|
tools:text="Brightness 0"
|
|
|
|
tools:visibility="visible"/>
|
|
|
|
|
|
|
|
<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:paddingBottom="10dp"
|
|
|
|
android:paddingLeft="30dp"
|
|
|
|
android:paddingRight="30dp"
|
|
|
|
android:paddingTop="10dp"
|
|
|
|
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"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
|
2017-08-29 00:38:37 +00:00
|
|
|
</RelativeLayout>
|