|
@@ -1,162 +1,170 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<layout>
|
|
|
-<RelativeLayout
|
|
|
- xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:orientation="vertical"
|
|
|
- android:background="@color/white">
|
|
|
-
|
|
|
<RelativeLayout
|
|
|
- android:id="@+id/text_top"
|
|
|
+ xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="50dp"
|
|
|
- android:background="@color/main_color">
|
|
|
- <LinearLayout
|
|
|
- android:id="@+id/view_title_layout_img"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:gravity="center"
|
|
|
- android:clickable="true">
|
|
|
- <ImageView
|
|
|
- android:layout_width="15dp"
|
|
|
- android:layout_height="25dp"
|
|
|
- android:layout_marginLeft="30dp"
|
|
|
- android:clickable="true"
|
|
|
- android:background="@mipmap/integ_arrow_icon"
|
|
|
- android:layout_centerVertical="true" />
|
|
|
- </LinearLayout>
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:textSize="28sp"
|
|
|
- android:text="测试界面"
|
|
|
- android:layout_centerHorizontal="true"
|
|
|
- android:layout_centerVertical="true"
|
|
|
- android:textColor="@color/white"/>
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:background="@color/white">
|
|
|
|
|
|
- </RelativeLayout>
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/text_top"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="50dp"
|
|
|
+ android:background="@color/main_color">
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/view_title_layout_img"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:gravity="center"
|
|
|
+ android:clickable="true">
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="15dp"
|
|
|
+ android:layout_height="25dp"
|
|
|
+ android:layout_marginLeft="30dp"
|
|
|
+ android:clickable="true"
|
|
|
+ android:background="@mipmap/integ_arrow_icon"
|
|
|
+ android:layout_centerVertical="true" />
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textSize="28sp"
|
|
|
+ android:text="测试界面"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:textColor="@color/white"/>
|
|
|
|
|
|
+ </RelativeLayout>
|
|
|
|
|
|
- <com.wdkl.app.ncs.callingbed.helper.DrawingView
|
|
|
- android:id="@+id/slayout"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:background="@color/white"
|
|
|
- android:visibility="gone" />
|
|
|
|
|
|
- <View
|
|
|
- android:id="@+id/color_view"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:background="@color/black"
|
|
|
- android:clickable="true"
|
|
|
- android:visibility="gone" />
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:id="@+id/text_mian"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:orientation="vertical"
|
|
|
- android:layout_below="@+id/text_top">
|
|
|
- <RelativeLayout
|
|
|
+ <com.wdkl.app.ncs.callingbed.helper.DrawingView
|
|
|
+ android:id="@+id/slayout"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content">
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/white"
|
|
|
+ android:visibility="gone" />
|
|
|
|
|
|
- <SurfaceView
|
|
|
- android:id="@+id/camera_preview_surface"
|
|
|
- android:layout_width="240dp"
|
|
|
- android:layout_height="240dp" />
|
|
|
+ <View
|
|
|
+ android:id="@+id/color_view"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/black"
|
|
|
+ android:clickable="true"
|
|
|
+ android:visibility="gone" />
|
|
|
|
|
|
- <Button
|
|
|
- android:id="@+id/btn_sos_test"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_margin="10dp"
|
|
|
- android:layout_toRightOf="@id/camera_preview_surface"
|
|
|
- android:text="SOS"
|
|
|
- android:visibility="gone"
|
|
|
- android:textSize="28sp"/>
|
|
|
-
|
|
|
- <Button
|
|
|
- android:id="@+id/btn_reset"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_margin="10dp"
|
|
|
- android:layout_toRightOf="@id/btn_sos_test"
|
|
|
- android:text="重置"
|
|
|
- android:visibility="gone"
|
|
|
- android:textSize="28sp"/>
|
|
|
-
|
|
|
- <Button
|
|
|
- android:id="@+id/btn_net_off"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_margin="10dp"
|
|
|
- android:layout_toRightOf="@id/btn_reset"
|
|
|
- android:text="网络开关"
|
|
|
- android:visibility="gone"
|
|
|
- android:textSize="28sp"/>
|
|
|
-
|
|
|
- <Button
|
|
|
- android:id="@+id/btn_color"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_margin="10dp"
|
|
|
- android:layout_toRightOf="@id/btn_net_off"
|
|
|
- android:text="屏幕颜色"
|
|
|
- android:textSize="28sp"/>
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/text_mian"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:layout_below="@+id/text_top">
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+ <SurfaceView
|
|
|
+ android:id="@+id/camera_preview_surface"
|
|
|
+ android:layout_width="240dp"
|
|
|
+ android:layout_height="240dp" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_sos_test"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_margin="10dp"
|
|
|
+ android:layout_toRightOf="@id/camera_preview_surface"
|
|
|
+ android:text="卫生间灯"
|
|
|
+ android:textSize="28sp"/>
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_door_test"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_margin="10dp"
|
|
|
+ android:layout_toRightOf="@id/btn_sos_test"
|
|
|
+ android:text="门灯"
|
|
|
+ android:textSize="28sp"/>
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_reset"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_margin="10dp"
|
|
|
+ android:layout_toRightOf="@id/btn_door_test"
|
|
|
+ android:text="重置"
|
|
|
+ android:visibility="gone"
|
|
|
+ android:textSize="28sp"/>
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_net_off"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_margin="10dp"
|
|
|
+ android:layout_toRightOf="@id/btn_reset"
|
|
|
+ android:text="网络开关"
|
|
|
+ android:visibility="gone"
|
|
|
+ android:textSize="28sp"/>
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_color"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_margin="10dp"
|
|
|
+ android:layout_toRightOf="@id/btn_net_off"
|
|
|
+ android:text="屏幕颜色"
|
|
|
+ android:textSize="28sp"/>
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_cm"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_margin="10dp"
|
|
|
+ android:layout_toRightOf="@id/btn_color"
|
|
|
+ android:text="屏幕触摸"
|
|
|
+ android:textSize="28sp"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_ip"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:layout_toRightOf="@id/camera_preview_surface"
|
|
|
+ android:layout_below="@id/btn_cm"
|
|
|
+ android:textSize="20sp"
|
|
|
+ android:text="IP:"/>
|
|
|
+ </RelativeLayout>
|
|
|
|
|
|
- <Button
|
|
|
- android:id="@+id/btn_cm"
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_camera"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_margin="10dp"
|
|
|
- android:layout_toRightOf="@id/btn_color"
|
|
|
- android:text="屏幕触摸"
|
|
|
- android:textSize="28sp"/>
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:textSize="20sp"
|
|
|
+ android:visibility="gone"/>
|
|
|
|
|
|
<TextView
|
|
|
- android:id="@+id/tv_ip"
|
|
|
+ android:id="@+id/tv_test_info"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="10dp"
|
|
|
- android:layout_toRightOf="@id/camera_preview_surface"
|
|
|
- android:layout_below="@id/btn_cm"
|
|
|
- android:textSize="20sp"
|
|
|
- android:text="IP:"/>
|
|
|
- </RelativeLayout>
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:textSize="24sp"/>
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_camera"
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_fist"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="10dp"
|
|
|
- android:textSize="20sp"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:text="退出测试"
|
|
|
+ android:background="@drawable/shape_main_hos_txt_bg"
|
|
|
+ android:textSize="28sp"
|
|
|
android:visibility="gone"/>
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_test_info"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="10dp"
|
|
|
- android:textSize="24sp"/>
|
|
|
- </LinearLayout>
|
|
|
-
|
|
|
- <Button
|
|
|
- android:id="@+id/btn_fist"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:padding="10dp"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
- android:layout_centerHorizontal="true"
|
|
|
- android:textColor="@color/white"
|
|
|
- android:text="退出测试"
|
|
|
- android:background="@drawable/shape_main_hos_txt_bg"
|
|
|
- android:textSize="28sp"
|
|
|
- android:visibility="gone"/>
|
|
|
-
|
|
|
-</RelativeLayout>
|
|
|
+ </RelativeLayout>
|
|
|
</layout>
|