73 lines
2.6 KiB
XML
73 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/black2">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="72dp"
|
|
android:gravity="center"
|
|
android:paddingTop="24dp"
|
|
tools:ignore="MissingConstraints">
|
|
|
|
<View
|
|
android:id="@+id/v_back"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_marginLeft="9dp"
|
|
android:background="@drawable/iconfh_left_white" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginLeft="12dp"
|
|
android:layout_toEndOf="@id/v_back"
|
|
android:gravity="center"
|
|
android:text="@string/preview"
|
|
android:textColor="@color/white"
|
|
android:textSize="16sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_gravity="right"
|
|
android:layout_marginRight="18dp"
|
|
android:textColor="@color/red"
|
|
android:textSize="16sp" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/root"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="72dp">
|
|
|
|
<com.tencent.rtmp.ui.TXCloudVideoView
|
|
android:id="@+id/video_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_centerInParent="true" />
|
|
|
|
<View
|
|
android:id="@+id/video_cover"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="#000" />
|
|
|
|
<ImageView
|
|
android:id="@+id/btn_play"
|
|
android:layout_width="80dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:adjustViewBounds="true"
|
|
android:src="@mipmap/icon_video_play"
|
|
android:visibility="invisible" />
|
|
</RelativeLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |