TubeLab-App-Android/app/src/main/res/layout/exo_player_control_view.xml

174 lines
6.6 KiB
XML
Raw Normal View History

2020-09-14 15:53:31 +02: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.
-->
2020-11-16 18:54:59 +01:00
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
2020-09-14 15:53:31 +02:00
android:layout_width="match_parent"
2020-11-16 18:54:59 +01:00
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/mainMediaControllerContainer"
2020-09-14 15:53:31 +02:00
android:layout_gravity="bottom"
android:background="#CC000000"
android:layoutDirection="ltr"
2020-11-16 18:54:59 +01:00
android:layout_height="match_parent"
2020-10-29 18:56:57 +01:00
android:orientation="vertical">
2020-09-14 15:53:31 +02:00
2020-11-16 18:54:59 +01:00
<ImageButton
android:id="@id/exo_settings"
style="@style/ExoStyledControls.Button.Bottom.Settings"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
2020-09-14 15:53:31 +02:00
<LinearLayout
2020-11-16 18:54:59 +01:00
android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2020-09-14 15:53:31 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
2020-11-16 18:54:59 +01:00
app:layout_constraintTop_toTopOf="parent">
2020-09-14 15:53:31 +02:00
<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>
2020-12-29 16:53:02 +01:00
<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>
2020-09-14 15:53:31 +02:00
<LinearLayout
2020-11-16 18:54:59 +01:00
android:id="@+id/seekbar_controller"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2020-09-14 15:53:31 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:gravity="center_vertical"
android:orientation="horizontal">
<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" />
2020-12-18 18:00:47 +01:00
<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" />
2020-09-14 15:53:31 +02:00
<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"
2020-11-16 18:54:59 +01:00
android:layout_width="24dp"
android:layout_height="24dp"
2020-09-14 15:53:31 +02:00
android:layout_gravity="center"
android:adjustViewBounds="true"
android:contentDescription="@string/fullscreen"
android:scaleType="fitCenter"
android:src="@drawable/ic_baseline_fullscreen_24" />
</FrameLayout>
</LinearLayout>
2020-11-16 18:54:59 +01:00
</androidx.constraintlayout.widget.ConstraintLayout>