2017-03-09 07:42:40 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<FrameLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2017-03-27 04:08:16 +00:00
|
|
|
android:background="@android:color/black"
|
2017-05-01 05:23:50 +00:00
|
|
|
android:gravity="center"
|
2017-07-10 01:38:47 +00:00
|
|
|
tools:layout_height="84dp"
|
|
|
|
tools:layout_width="@dimen/popup_minimum_width">
|
2017-03-09 07:42:40 +00:00
|
|
|
|
2017-03-27 04:08:16 +00:00
|
|
|
|
|
|
|
<com.google.android.exoplayer2.ui.AspectRatioFrameLayout
|
|
|
|
android:id="@+id/aspectRatioLayout"
|
2017-03-09 07:42:40 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2017-03-27 04:08:16 +00:00
|
|
|
android:layout_gravity="center">
|
2017-03-09 07:42:40 +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>
|
2017-03-09 07:42:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/endScreen"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@color/black"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:background="@android:color/white"
|
2017-03-27 04:08:16 +00:00
|
|
|
tools:ignore="ContentDescription"
|
|
|
|
tools:visibility="visible"/>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/playbackControlRoot"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="#32000000"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<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:paddingBottom="20dp"
|
2017-07-10 01:38:47 +00:00
|
|
|
android:paddingLeft="2dp"
|
2017-03-27 04:08:16 +00:00
|
|
|
android:paddingRight="6dp"
|
2017-07-10 01:38:47 +00:00
|
|
|
android:paddingTop="4dp"
|
|
|
|
tools:ignore="RtlHardcoded">
|
2017-03-27 04:08:16 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/qualityTextView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:gravity="center"
|
2017-07-10 01:38:47 +00:00
|
|
|
android:padding="5dp"
|
2017-03-27 04:08:16 +00:00
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textStyle="bold"
|
2017-07-10 01:38:47 +00:00
|
|
|
tools:ignore="RtlHardcoded,RtlSymmetry"
|
|
|
|
tools:text="1080p60"/>
|
2017-03-27 04:08:16 +00:00
|
|
|
|
2017-06-26 02:41:52 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/playbackSpeed"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="30dp"
|
2017-07-10 01:38:47 +00:00
|
|
|
android:layout_toRightOf="@+id/qualityTextView"
|
2017-06-26 02:41:52 +00:00
|
|
|
android:gravity="center"
|
2017-07-10 01:38:47 +00:00
|
|
|
android:padding="6dp"
|
2017-06-26 02:41:52 +00:00
|
|
|
android:textColor="@android:color/white"
|
2017-07-10 01:38:47 +00:00
|
|
|
android:textStyle="bold"
|
|
|
|
tools:ignore="RelativeOverlap,RtlHardcoded,RtlSymmetry"
|
|
|
|
tools:text="1.75x"/>
|
2017-06-26 02:41:52 +00:00
|
|
|
|
2017-03-27 04:08:16 +00:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/fullScreenButton"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:background="#00ffffff"
|
|
|
|
android:clickable="true"
|
2017-12-23 16:34:47 +00:00
|
|
|
android:focusable="true"
|
2017-03-27 04:08:16 +00:00
|
|
|
android:scaleType="fitCenter"
|
|
|
|
android:src="@drawable/ic_fullscreen_white"
|
|
|
|
tools:ignore="ContentDescription,RtlHardcoded"/>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<!--Shadow Bottom Control-->
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:background="@drawable/player_controls_bg"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingTop="50dp"/>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/bottomControls"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingBottom="2dp"
|
|
|
|
android:paddingLeft="8dp"
|
|
|
|
android:paddingRight="8dp">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/playbackCurrentTime"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:text="-:--:--"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
tools:ignore="HardcodedText,RtlHardcoded,RtlSymmetry"
|
|
|
|
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="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_weight="1"
|
|
|
|
tools:progress="25"
|
|
|
|
tools:secondaryProgress="50"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/playbackEndTime"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:text="-:--:--"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
tools:ignore="HardcodedText,RtlHardcoded,RtlSymmetry"
|
|
|
|
tools:text="1:23:49"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
2017-03-09 07:42:40 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
2017-03-27 04:08:16 +00:00
|
|
|
android:orientation="horizontal"
|
2017-07-10 01:38:47 +00:00
|
|
|
android:weightSum="5.5">
|
2017-03-27 04:08:16 +00:00
|
|
|
<!--tools:visibility="gone">-->
|
2017-03-09 07:42:40 +00:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/controlAnimationView"
|
2017-03-27 04:08:16 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
2017-03-09 07:42:40 +00:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:src="@drawable/ic_action_av_fast_rewind"
|
|
|
|
android:visibility="gone"
|
2017-03-27 04:08:16 +00:00
|
|
|
tools:ignore="ContentDescription"
|
|
|
|
tools:visibility="visible"/>
|
2017-03-09 07:42:40 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
2017-03-27 04:08:16 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/currentDisplaySeek"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:background="#64000000"
|
2017-03-09 07:42:40 +00:00
|
|
|
android:paddingBottom="5dp"
|
2017-03-27 04:08:16 +00:00
|
|
|
android:paddingLeft="20dp"
|
|
|
|
android:paddingRight="20dp"
|
|
|
|
android:paddingTop="5dp"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="18sp"
|
|
|
|
android:textStyle="bold"
|
2017-03-09 07:42:40 +00:00
|
|
|
android:visibility="gone"
|
2017-03-27 04:08:16 +00:00
|
|
|
tools:ignore="RtlHardcoded"
|
|
|
|
tools:text="1:06:29"
|
|
|
|
tools:visibility="visible"/>
|
2017-03-09 07:42:40 +00:00
|
|
|
|
|
|
|
<RelativeLayout
|
2017-04-26 19:24:33 +00:00
|
|
|
android:id="@+id/loading_panel"
|
2017-03-09 07:42:40 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:background="@color/black"
|
|
|
|
android:gravity="center"
|
|
|
|
android:padding="20dp"
|
|
|
|
tools:visibility="gone">
|
|
|
|
|
|
|
|
<ProgressBar
|
2017-03-27 04:08:16 +00:00
|
|
|
android:id="@+id/progressBarLoadingPanel"
|
2017-03-09 07:42:40 +00:00
|
|
|
style="?android:attr/progressBarStyleLarge"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:indeterminate="true"/>
|
|
|
|
</RelativeLayout>
|
2017-05-01 05:23:50 +00: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"
|
2017-07-10 01:38:47 +00:00
|
|
|
tools:visibility="gone"/>
|
2017-03-09 07:42:40 +00:00
|
|
|
</FrameLayout>
|