2019-01-06 13:20:06 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- Copyright (C) 2016 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:layoutDirection="ltr"
|
|
|
|
android:background="#CC000000"
|
|
|
|
android:orientation="vertical"
|
|
|
|
tools:targetApi="28">
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
|
|
|
android:paddingTop="4dp"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageButton android:id="@id/exo_prev"
|
|
|
|
style="@style/ExoMediaButton.Previous"/>
|
|
|
|
|
|
|
|
<ImageButton android:id="@id/exo_rew"
|
|
|
|
style="@style/ExoMediaButton.Rewind"/>
|
|
|
|
|
|
|
|
<ImageButton android:id="@id/exo_shuffle"
|
|
|
|
style="@style/ExoMediaButton.Shuffle"/>
|
|
|
|
|
|
|
|
<ImageButton android:id="@id/exo_repeat_toggle"
|
|
|
|
style="@style/ExoMediaButton"/>
|
|
|
|
|
|
|
|
<ImageButton android:id="@id/exo_play"
|
|
|
|
style="@style/ExoMediaButton.Play"/>
|
|
|
|
|
|
|
|
<ImageButton android:id="@id/exo_pause"
|
|
|
|
style="@style/ExoMediaButton.Pause"/>
|
|
|
|
|
|
|
|
<ImageButton android:id="@id/exo_ffwd"
|
|
|
|
style="@style/ExoMediaButton.FastForward"/>
|
|
|
|
|
|
|
|
<ImageButton android:id="@id/exo_next"
|
|
|
|
style="@style/ExoMediaButton.Next"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="horizontal">
|
2019-01-06 13:44:04 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/resolution"
|
|
|
|
android:textSize="12sp"
|
2019-01-06 14:04:09 +01:00
|
|
|
android:paddingLeft="4dp"
|
|
|
|
android:paddingRight="4dp"
|
2019-01-06 13:44:04 +01:00
|
|
|
android:layout_width="wrap_content"
|
2019-01-06 14:04:09 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:includeFontPadding="false"
|
|
|
|
android:textColor="#FFBEBEBE"
|
|
|
|
/>
|
2019-01-06 13:20:06 +01:00
|
|
|
<TextView android:id="@id/exo_position"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:paddingLeft="4dp"
|
|
|
|
android:paddingRight="4dp"
|
|
|
|
android:includeFontPadding="false"
|
|
|
|
android:textColor="#FFBEBEBE"/>
|
|
|
|
|
|
|
|
<com.google.android.exoplayer2.ui.DefaultTimeBar
|
|
|
|
android:id="@id/exo_progress"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_height="26dp"/>
|
|
|
|
|
|
|
|
<TextView android:id="@id/exo_duration"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:paddingLeft="4dp"
|
|
|
|
android:paddingRight="4dp"
|
|
|
|
android:includeFontPadding="false"
|
|
|
|
android:textColor="#FFBEBEBE"/>
|
|
|
|
<FrameLayout android:id="@+id/exo_fullscreen_button"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/exo_fullscreen_icon"
|
|
|
|
android:layout_width="18dp"
|
|
|
|
android:layout_height="18dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:adjustViewBounds="true"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
android:contentDescription="@string/fullscreen"
|
|
|
|
android:src="@drawable/ic_fullscreen"/>
|
|
|
|
</FrameLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|