jimu-decompiled/resources/res/layout/video_play_fragment.xml
2025-05-13 19:24:51 +02:00

58 lines
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:background="@android:color/black"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:keepScreenOn="true">
<VideoView
android:layout_gravity="center"
android:id="@+id/video_view"
android:background="@android:color/transparent"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<RelativeLayout
android:layout_gravity="bottom"
android:id="@+id/rlProgress"
android:background="#55000000"
android:paddingTop="4dp"
android:paddingBottom="4dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:textColor="@android:color/white"
android:id="@+id/tvCurrent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="48dp"
android:text="00:00"
android:layout_centerVertical="true"/>
<ProgressBar
android:id="@+id/progressBar"
android:layout_width="match_parent"
android:layout_height="4dp"
android:layout_marginLeft="4dp"
android:layout_marginRight="4dp"
android:max="100"
android:progressDrawable="@drawable/progress_line"
android:layout_toLeftOf="@+id/tvDuration"
android:layout_toRightOf="@+id/tvCurrent"
android:layout_centerVertical="true"
style="?android:attr/progressBarStyleHorizontal"/>
<TextView
android:textColor="@android:color/white"
android:id="@+id/tvDuration"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="48dp"
android:text="00:00"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"/>
</RelativeLayout>
<ImageView
android:layout_gravity="center"
android:id="@+id/imgPlay"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/play_video"/>
</FrameLayout>