40 lines
1.3 KiB
XML
40 lines
1.3 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"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:background="#000000">
|
||
|
|
|
||
|
|
<com.google.android.exoplayer2.ui.PlayerView
|
||
|
|
android:id="@+id/playerView"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
app:resize_mode="fit" />
|
||
|
|
|
||
|
|
<ProgressBar
|
||
|
|
android:id="@+id/progressBar"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:visibility="gone" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tvError"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:textColor="#FF4444"
|
||
|
|
android:textSize="18sp"
|
||
|
|
android:visibility="gone" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/btnBack"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="top|start"
|
||
|
|
android:layout_margin="16dp"
|
||
|
|
android:text="返回"
|
||
|
|
android:alpha="0.7" />
|
||
|
|
|
||
|
|
</FrameLayout>
|