From 848cbfebefab08cc49b0285155edb84463aed862 Mon Sep 17 00:00:00 2001 From: panlili2024 <14743743+panlili2024@user.noreply.gitee.com> Date: 星期三, 13 十一月 2024 17:19:53 +0800 Subject: [PATCH] 提交home项目所用可视对讲sdk --- HDLLinphoneSDKDemoNew/HDLLinphoneSDK/src/main/res/layout/activity_hdllinphone_monitor.xml | 72 ++++++++++++++++++++--------------- 1 files changed, 41 insertions(+), 31 deletions(-) diff --git a/HDLLinphoneSDKDemoNew/HDLLinphoneSDK/src/main/res/layout/activity_hdllinphone_monitor.xml b/HDLLinphoneSDKDemoNew/HDLLinphoneSDK/src/main/res/layout/activity_hdllinphone_monitor.xml index 0439297..db38897 100644 --- a/HDLLinphoneSDKDemoNew/HDLLinphoneSDK/src/main/res/layout/activity_hdllinphone_monitor.xml +++ b/HDLLinphoneSDKDemoNew/HDLLinphoneSDK/src/main/res/layout/activity_hdllinphone_monitor.xml @@ -1,26 +1,33 @@ <?xml version="1.0" encoding="utf-8"?> -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/white" android:orientation="vertical"> + <View + android:id="@+id/id_top" + android:layout_width="match_parent" + android:layout_height="44dp" + android:background="@color/white" /> + <RelativeLayout android:id="@+id/rl_lp_topView" android:layout_width="match_parent" - android:background="@color/lpsdk_app_bg" - android:layout_height="44dp"> + android:layout_height="44dp" + android:background="@color/white"> <RelativeLayout android:id="@+id/ll_lp_btn_back" - android:layout_width="44dp" + android:layout_width="64dp" android:layout_height="44dp"> + <ImageView android:layout_width="20dp" android:layout_height="20dp" - android:layout_centerInParent="true" - android:src="@drawable/ic_esvideo_on_back"/> + android:layout_centerVertical="true" + android:layout_marginStart="16dp" + android:src="@drawable/ic_esvideo_on_back" /> </RelativeLayout> @@ -28,14 +35,13 @@ android:id="@+id/tv_lp_title" android:layout_width="match_parent" android:layout_height="25dp" - android:layout_marginTop="10dp" android:layout_marginLeft="50dp" + android:layout_marginTop="10dp" android:layout_marginRight="50dp" android:gravity="center" - android:textColor="@color/lpsdk_textColor" - android:textSize="18sp" android:text="瀹ゅ唴鏈�" - ></TextView> + android:textColor="@color/lpsdk_textColor" + android:textSize="18sp"></TextView> </RelativeLayout> @@ -45,10 +51,11 @@ android:layout_width="wrap_content" android:layout_height="210dp" android:background="@android:color/black"> + <TextureView android:id="@+id/video_lp_rendering" android:layout_width="match_parent" - android:layout_height="match_parent"/> + android:layout_height="match_parent" /> </LinearLayout> <RelativeLayout @@ -58,7 +65,7 @@ <TextureView android:id="@+id/video_lp_rendering2" android:layout_width="1dp" - android:layout_height="1dp"/> + android:layout_height="1dp" /> <LinearLayout @@ -68,51 +75,54 @@ android:layout_marginTop="66dp"> <RelativeLayout + android:id="@+id/rl_screenshot" android:layout_width="0dp" - android:layout_weight="1" - android:layout_height="match_parent"> + android:layout_height="match_parent" + android:layout_weight="1"> + <ImageView android:id="@+id/iv_lp_screenshot" android:layout_width="66dp" android:layout_height="66dp" - android:scaleType="fitCenter" + android:layout_centerHorizontal="true" android:background="@drawable/btn_click_lp_screenshot" - android:layout_centerHorizontal="true"/> + android:scaleType="fitCenter" /> + <TextView android:id="@+id/tv_lp_screenshot" android:layout_width="match_parent" android:layout_height="20dp" - android:text="@string/lp_screenshotStr" + android:layout_alignParentBottom="true" android:gravity="center" + android:text="@string/lp_screenshotStr" android:textColor="@color/lpsdk_textColor" - android:textSize="14sp" - android:layout_alignParentBottom="true"/> + android:textSize="14sp" /> </RelativeLayout> <RelativeLayout - android:id="@+id/rl_lp_unlock" + android:id="@+id/rl_unlock" android:layout_width="0dp" - android:layout_weight="1" - android:layout_height="match_parent"> + android:layout_height="match_parent" + android:layout_weight="1"> + <ImageView android:id="@+id/iv_lp_unlock" android:layout_width="66dp" android:layout_height="66dp" - android:scaleType="fitCenter" - android:background="@drawable/btn_click_lp_unlock" android:layout_centerHorizontal="true" - ></ImageView> + android:background="@drawable/btn_click_lp_unlock" + android:scaleType="fitCenter"></ImageView> + <TextView android:id="@+id/tv_lp_unlock" android:layout_width="match_parent" android:layout_height="20dp" - android:text="@string/lp_unlockStr" - android:gravity="center" - android:textColor="@color/lpsdk_textColor" - android:textSize="14sp" android:layout_alignParentBottom="true" - ></TextView> + android:gravity="center" + android:text="@string/lp_unlockStr" + android:textColor="@color/lpsdk_textColor" + android:textSize="14sp"></TextView> </RelativeLayout> -- Gitblit v1.8.0