cloudstream/app/src/main/res/layout/fragment_player.xml

97 lines
4 KiB
XML
Raw Normal View History

2021-05-22 22:25:56 +00:00
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
2021-06-11 13:33:30 +00:00
android:layout_height="match_parent" xmlns:tools="http://schemas.android.com/tools"
2021-05-22 22:25:56 +00:00
android:orientation="horizontal"
android:keepScreenOn="true"
app:backgroundTint="@android:color/black"
android:background="@android:color/black"
android:screenOrientation="userLandscape"
app:surface_type="texture_view"
>
2021-08-14 17:31:27 +00:00
<!--
app:fastforward_increment="10000"
app:rewind_increment="10000"-->
2021-05-22 22:25:56 +00:00
<com.google.android.exoplayer2.ui.PlayerView
android:id="@+id/player_view"
app:show_timeout="0"
app:hide_on_touch="false"
app:auto_show="true"
android:layout_width="match_parent"
android:layout_height="match_parent"
2021-08-14 17:31:27 +00:00
2021-05-22 22:25:56 +00:00
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
2021-05-23 12:10:39 +00:00
app:controller_layout_id="@layout/player_custom_layout"
2021-05-22 22:25:56 +00:00
/>
2021-06-11 13:33:30 +00:00
2021-05-22 22:25:56 +00:00
<FrameLayout
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/loading_overlay"
android:background="@android:color/black"
android:backgroundTint="@android:color/black"
>
2021-06-11 13:33:30 +00:00
<com.google.android.material.button.MaterialButton
android:visibility="visible"
android:layout_marginTop="70dp"
android:layout_gravity="center"
app:cornerRadius="4dp"
android:id="@+id/overlay_loading_skip_button"
android:text="@string/skip_loading"
app:rippleColor="?attr/colorPrimary"
android:textColor="?attr/textColor"
app:iconTint="?attr/textColor"
android:textAllCaps="false"
app:icon="@drawable/ic_baseline_skip_next_24"
android:backgroundTint="@color/transparent"
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
android:layout_width="wrap_content"
android:layout_height="45dp">
</com.google.android.material.button.MaterialButton>
2021-05-22 22:25:56 +00:00
<ProgressBar
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center"
android:id="@+id/main_load"
>
</ProgressBar>
2021-06-11 13:33:30 +00:00
2021-05-22 22:25:56 +00:00
<FrameLayout
android:layout_margin="5dp"
2021-06-11 13:33:30 +00:00
app:layout_constraintStart_toStartOf="parent"
2021-05-22 22:25:56 +00:00
app:layout_constraintTop_toTopOf="parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_gravity="center"
android:src="@drawable/ic_baseline_arrow_back_24"
2021-06-11 13:33:30 +00:00
app:tint="@android:color/white"
>
2021-05-22 22:25:56 +00:00
</ImageView>
<ImageView
android:id="@+id/video_go_back_holder"
2021-06-11 13:33:30 +00:00
android:layout_width="70dp"
android:layout_height="70dp"
2021-05-22 22:25:56 +00:00
android:layout_gravity="center"
android:focusable="true"
android:clickable="true"
2021-06-11 13:33:30 +00:00
android:background="@drawable/video_tap_button_always_white">
2021-05-22 22:25:56 +00:00
</ImageView>
</FrameLayout>
</FrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout>