168 lines
6.6 KiB
XML
168 lines
6.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/player_controls_root"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="#73000000">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/exo_top_controls"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginTop="7dp"
|
|
android:layout_marginEnd="12dp"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageButton
|
|
android:id="@+id/exo_close_player"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:background="@android:color/transparent"
|
|
android:contentDescription="@string/close_player"
|
|
android:padding="10dp"
|
|
android:scaleType="fitXY"
|
|
app:srcCompat="@drawable/ic_baseline_arrow_back_24" />
|
|
|
|
<TextView
|
|
android:id="@+id/exo_text_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="44dp"
|
|
android:text="@string/text_title_ex"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/player_white"
|
|
android:textSize="16sp"
|
|
tools:ignore="TextContrastCheck" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/exo_main_controls"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<Space
|
|
android:layout_width="0dp"
|
|
android:layout_height="1dp"
|
|
android:layout_weight="1" />
|
|
|
|
<org.mosad.teapod.ui.components.RewindButton
|
|
android:id="@+id/rwd_10"
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<Space
|
|
android:layout_width="0dp"
|
|
android:layout_height="1dp"
|
|
android:layout_weight="1" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/exo_play_pause"
|
|
style="@style/ExoStyledControls.Button.Center.PlayPause"
|
|
android:layout_width="52dp"
|
|
android:layout_height="52dp"
|
|
android:layout_gravity="center"
|
|
android:contentDescription="@string/play_pause" />
|
|
|
|
<Space
|
|
android:layout_width="0dp"
|
|
android:layout_height="1dp"
|
|
android:layout_weight="1" />
|
|
|
|
<org.mosad.teapod.ui.components.FastForwardButton
|
|
android:id="@+id/ffwd_10"
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<Space
|
|
android:layout_width="0dp"
|
|
android:layout_height="1dp"
|
|
android:layout_weight="1" />
|
|
</LinearLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/exo_time_controls"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginEnd="12dp"
|
|
android:layout_marginBottom="@dimen/player_styled_progress_margin_bottom">
|
|
|
|
<com.google.android.exoplayer2.ui.DefaultTimeBar
|
|
android:id="@id/exo_progress"
|
|
android:layout_width="0dp"
|
|
android:layout_height="@dimen/player_styled_progress_layout_height"
|
|
android:contentDescription="@string/desc_time_bar"
|
|
app:bar_height="3dp"
|
|
app:touch_target_height="@dimen/player_styled_progress_layout_height"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/exo_remaining"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/exo_remaining"
|
|
style="@style/ExoStyledControls.TimeText.Position"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/exo_bottom_controls"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="42dp"
|
|
android:layout_gravity="bottom"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginEnd="12dp"
|
|
android:layout_marginBottom="7dp">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/button_language"
|
|
style="@style/Widget.AppCompat.Button.Borderless"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="7dp"
|
|
android:text="@string/subtitles"
|
|
android:textAllCaps="false"
|
|
app:icon="@drawable/ic_baseline_subtitles_24"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/button_episodes"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/button_episodes"
|
|
style="@style/Widget.AppCompat.Button.Borderless"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="7dp"
|
|
android:text="@string/episodes"
|
|
android:textAllCaps="false"
|
|
app:icon="@drawable/ic_baseline_video_library_24"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/button_next_ep_c"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/button_next_ep_c"
|
|
style="@style/Widget.AppCompat.Button.Borderless"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/episode"
|
|
android:textAllCaps="false"
|
|
app:icon="@drawable/ic_baseline_skip_next_24"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</FrameLayout> |