teapod/app/src/main/res/layout/activity_player.xml

106 lines
3.8 KiB
XML
Raw Normal View History

2020-10-11 13:18:20 +02:00
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2020-10-23 11:51:09 +02:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2020-10-11 13:18:20 +02:00
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/player_root"
2020-10-11 13:18:20 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#000000"
android:keepScreenOn="true"
tools:context=".ui.activity.player.PlayerActivity">
2020-10-11 13:18:20 +02:00
2020-11-05 18:47:49 +01:00
<com.google.android.exoplayer2.ui.StyledPlayerView
2020-10-11 13:18:20 +02:00
android:id="@+id/video_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-10-23 11:51:09 +02:00
android:layout_gravity="center"
2020-11-07 13:33:59 +01:00
android:animateLayoutChanges="true"
android:foreground="@drawable/ripple_background"
app:controller_layout_id="@layout/player_controls" />
2020-10-11 13:18:20 +02:00
2020-11-29 18:23:02 +01:00
<com.google.android.material.progressindicator.CircularProgressIndicator
2020-10-11 13:18:20 +02:00
android:id="@+id/loading"
android:layout_width="70dp"
android:layout_height="70dp"
android:layout_gravity="center"
2020-11-29 18:23:02 +01:00
android:indeterminate="true"
app:indicatorColor="@color/player_white"
tools:visibility="visible" />
2020-10-11 13:18:20 +02:00
<LinearLayout
android:id="@+id/exo_double_tap_indicator"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:orientation="horizontal"
android:visibility="gone">
<Space
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_weight="1" />
<org.mosad.teapod.ui.components.RewindButton
android:id="@+id/rwd_10_indicator"
android:layout_width="100dp"
android:layout_height="wrap_content" />
<Space
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_weight="1" />
<Space
android:layout_width="60dp"
android:layout_height="1dp" />
<Space
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_weight="1" />
<org.mosad.teapod.ui.components.FastForwardButton
android:id="@+id/ffwd_10_indicator"
android:layout_width="100dp"
android:layout_height="wrap_content" />
<Space
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_weight="1" />
</LinearLayout>
2020-11-13 15:36:12 +01:00
<com.google.android.material.button.MaterialButton
android:id="@+id/button_next_ep"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_marginEnd="12dp"
android:layout_marginBottom="70dp"
android:gravity="center"
android:text="@string/next_episode"
android:textAllCaps="false"
android:textColor="@android:color/primary_text_light"
android:textSize="16sp"
android:visibility="gone"
app:backgroundTint="@color/player_white"
2020-11-13 15:36:12 +01:00
app:iconGravity="textStart" />
<com.google.android.material.button.MaterialButton
android:id="@+id/button_skip_op"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_marginEnd="12dp"
android:layout_marginBottom="70dp"
android:gravity="center"
android:text="@string/skip_opening"
android:textAllCaps="false"
android:textColor="@android:color/primary_text_light"
android:textSize="16sp"
android:visibility="gone"
app:backgroundTint="@color/player_white"
app:iconGravity="textStart" />
2020-10-11 13:18:20 +02:00
</FrameLayout>