summaryrefslogtreecommitdiffstats
path: root/app/src/main/res/layouts/peertube/layout/peertube_exo_player_control_view.xml
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layouts/peertube/layout/peertube_exo_player_control_view.xml')
-rw-r--r--app/src/main/res/layouts/peertube/layout/peertube_exo_player_control_view.xml173
1 files changed, 173 insertions, 0 deletions
diff --git a/app/src/main/res/layouts/peertube/layout/peertube_exo_player_control_view.xml b/app/src/main/res/layouts/peertube/layout/peertube_exo_player_control_view.xml
new file mode 100644
index 000000000..0301ca16a
--- /dev/null
+++ b/app/src/main/res/layouts/peertube/layout/peertube_exo_player_control_view.xml
@@ -0,0 +1,173 @@
+<?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.
+-->
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/mainMediaControllerContainer"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_gravity="bottom"
+ android:background="#CC000000"
+ android:layoutDirection="ltr"
+ android:orientation="vertical">
+
+ <ImageButton
+ android:id="@id/exo_settings"
+ style="@style/ExoStyledControls.Button.Bottom.Settings"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:orientation="horizontal"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent">
+
+ <ImageButton
+ android:id="@id/exo_prev"
+ style="@style/ExoMediaButton.Previous" />
+
+
+ <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_next"
+ style="@style/ExoMediaButton.Next" />
+
+ </LinearLayout>
+
+ <androidx.constraintlayout.widget.ConstraintLayout
+ android:id="@+id/torrent_info"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ app:layout_constraintBottom_toTopOf="@+id/seekbar_controller"
+ app:layout_constraintEnd_toEndOf="parent">
+
+ <TextView
+ android:id="@+id/dowload_rate"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginEnd="5dp"
+ android:textColor="#FFBEBEBE"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toStartOf="@+id/upload_rate"
+ app:layout_constraintTop_toTopOf="parent" />
+
+ <TextView
+ android:id="@+id/upload_rate"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginEnd="5dp"
+ android:textColor="#FFBEBEBE"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toStartOf="@+id/peers_number"
+ app:layout_constraintTop_toTopOf="parent" />
+
+ <TextView
+ android:id="@+id/peers_number"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="end"
+ android:textColor="#FFBEBEBE"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+ </androidx.constraintlayout.widget.ConstraintLayout>
+
+ <LinearLayout
+ android:id="@+id/seekbar_controller"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="4dp"
+ android:gravity="center_vertical"
+ android:orientation="horizontal"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent">
+
+ <TextView
+ android:id="@+id/resolution"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:includeFontPadding="false"
+ android:paddingLeft="4dp"
+ android:paddingRight="4dp"
+ android:textColor="#FFBEBEBE"
+ android:textSize="14sp"
+ android:textStyle="bold" />
+
+ <TextView
+ android:id="@id/exo_position"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:includeFontPadding="false"
+ android:paddingLeft="4dp"
+ android:paddingRight="4dp"
+ android:textColor="#FFBEBEBE"
+ android:textSize="12sp" />
+
+ <com.google.android.exoplayer2.ui.DefaultTimeBar
+ android:id="@id/exo_progress"
+ android:layout_width="0dp"
+ android:layout_height="26dp"
+ android:layout_weight="1" />
+
+ <TextView
+ android:id="@id/exo_duration"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:includeFontPadding="false"
+ android:paddingLeft="4dp"
+ android:paddingRight="4dp"
+ android:textColor="#FFBEBEBE"
+ android:textSize="12sp" />
+
+ <TextView
+ android:id="@+id/exo_live_badge"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginEnd="5dp"
+ android:paddingStart="4dp"
+ android:paddingEnd="4dp"
+ android:textColor="#FFF"
+ android:textSize="12sp"
+ android:visibility="gone" />
+
+ <FrameLayout
+ android:id="@+id/exo_fullscreen_button"
+ android:layout_width="32dp"
+ android:layout_height="32dp"
+ android:layout_gravity="end">
+
+ <ImageView
+ android:id="@+id/exo_fullscreen_icon"
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:layout_gravity="center"
+ android:adjustViewBounds="true"
+ android:contentDescription="@string/fullscreen"
+ android:scaleType="fitCenter"
+ android:src="@drawable/ic_baseline_fullscreen_24" />
+ </FrameLayout>
+ </LinearLayout>
+
+</androidx.constraintlayout.widget.ConstraintLayout>