From a49db975b179ed2292cbc07d0b193f581be5a4d9 Mon Sep 17 00:00:00 2001 From: 18401019693 <https://gitee.com/xxkp/NEWPDLIVE.git> Date: Thu, 20 Oct 2022 11:22:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=82=AC=E6=B5=AE=E7=AA=97?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=EF=BC=8C=E6=B7=BB=E5=8A=A0=E6=82=AC=E6=B5=AE?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/res/layout/view_flaot_live.xml | 38 ++++++++ .../main/res/layout/view_float_settings.xml | 95 +++++++++++++++++++ 2 files changed, 133 insertions(+) create mode 100644 common/src/main/res/layout/view_flaot_live.xml create mode 100644 common/src/main/res/layout/view_float_settings.xml diff --git a/common/src/main/res/layout/view_flaot_live.xml b/common/src/main/res/layout/view_flaot_live.xml new file mode 100644 index 000000000..e97d21e66 --- /dev/null +++ b/common/src/main/res/layout/view_flaot_live.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="210dp" + android:layout_height="wrap_content"> + + <androidx.cardview.widget.CardView + android:layout_width="230dp" + android:layout_height="130dp" + android:layout_marginStart="25dp" + android:layout_marginTop="10dp" + android:layout_marginEnd="10dp" + app:cardCornerRadius="4dp" + app:cardElevation="0dp"> + + <androidx.cardview.widget.CardView + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_margin="1dp" + app:cardCornerRadius="4dp" + app:cardElevation="0dp"> + + <com.tencent.rtmp.ui.TXCloudVideoView + android:id="@+id/video_view" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + </androidx.cardview.widget.CardView> + + </androidx.cardview.widget.CardView> + + <ImageView + android:id="@+id/btn_close" + android:layout_width="50dp" + android:layout_height="50dp" + android:paddingBottom="30dp" + android:src="@mipmap/icon_live_close_3" /> + +</RelativeLayout> \ No newline at end of file diff --git a/common/src/main/res/layout/view_float_settings.xml b/common/src/main/res/layout/view_float_settings.xml new file mode 100644 index 000000000..979491a50 --- /dev/null +++ b/common/src/main/res/layout/view_float_settings.xml @@ -0,0 +1,95 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@drawable/bg_live_tota" + android:gravity="center_horizontal" + android:orientation="vertical"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="14dp" + android:text="@string/small_window_settings" + android:textColor="#FFF6F7FB" + android:textSize="17sp" /> + + <FrameLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginStart="24dp" + android:layout_marginTop="8dp" + android:layout_marginEnd="24dp" + android:layout_marginBottom="21dp"> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:text="@string/app_window" + android:textColor="#F2F2F2" + android:textSize="15sp" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:text="@string/app_window_hint" + android:textColor="#FF9A9A9A" + android:textSize="13.5sp" /> + </LinearLayout> + + + <ImageView + android:id="@+id/special_switch" + android:layout_width="40.8dp" + android:layout_height="24.8dp" + android:layout_gravity="end|center_vertical" + android:src="@mipmap/special_icon_off" /> + + </FrameLayout> + + <FrameLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginStart="24dp" + android:layout_marginTop="8dp" + android:layout_marginEnd="24dp" + android:layout_marginBottom="21dp"> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:text="@string/system_window" + android:textColor="#F2F2F2" + android:textSize="15sp" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:text="@string/system_window_hint" + android:textColor="#FF9A9A9A" + android:textSize="13.5sp" /> + </LinearLayout> + + <ImageView + android:id="@+id/special_mount_switch" + android:layout_width="40.8dp" + android:layout_height="24.8dp" + android:layout_gravity="end|center_vertical" + android:src="@mipmap/special_icon_off" /> + + </FrameLayout> +</LinearLayout> \ No newline at end of file