<?xml version="1.0" encoding="utf-8"?>
|
<LinearLayout 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/colorAccentbreak"
|
android:orientation="horizontal"
|
android:weightSum="1"
|
tools:context="com.alfeye.powerdemo.MainActivity">
|
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="1"
|
android:orientation="vertical"
|
android:weightSum="120"
|
tools:ignore="Suspicious0dp">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="10"
|
android:orientation="horizontal"
|
android:weightSum="1">
|
|
<Button
|
android:id="@+id/bts_3D5"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="0.5"
|
android:text="打开补光灯" />
|
|
<Button
|
android:id="@+id/btx_3D5"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="0.5"
|
android:text="关闭补光灯" />
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="10"
|
android:orientation="horizontal"
|
android:weightSum="1">
|
|
<Button
|
android:id="@+id/bts_2A2"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="0.5"
|
android:text="红外灯光上电" />
|
|
<Button
|
android:id="@+id/btx_2A2"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="0.5"
|
android:text="红外灯光下电" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="10"
|
android:orientation="horizontal"
|
android:weightSum="1">
|
|
<Button
|
android:id="@+id/bts_2A6"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="0.5"
|
android:text="4G上电" />
|
|
<Button
|
android:id="@+id/btx_2A6"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="0.5"
|
android:text="4G下电" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="10"
|
android:orientation="horizontal"
|
android:weightSum="1">
|
|
<Button
|
android:id="@+id/bts_3D4"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="0.5"
|
android:text="打开门铃" />
|
|
<Button
|
android:id="@+id/btx_3D4"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="0.5"
|
android:text="关闭门铃" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="10"
|
android:orientation="horizontal"
|
android:weightSum="1">
|
|
<Button
|
android:id="@+id/bts_2B2"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="0.5"
|
android:text="开锁" />
|
|
<Button
|
android:id="@+id/btx_2B2"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="0.5"
|
android:text="关锁" />
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="10"
|
android:orientation="horizontal"
|
android:weightSum="1">
|
|
<Button
|
android:id="@+id/bts_4A5"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="0.5"
|
android:text="串口上电" />
|
|
<Button
|
android:id="@+id/btx_4A5"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="0.5"
|
android:text="串口下电" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="10"
|
android:orientation="horizontal"
|
android:weightSum="1">
|
|
<Button
|
android:id="@+id/bts_4D2"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="0.5"
|
android:text="U口上电" />
|
|
<Button
|
android:id="@+id/btx_4D2"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="0.5"
|
android:text="U口下电" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="10"
|
android:orientation="horizontal"
|
android:weightSum="1">
|
|
<Button
|
android:id="@+id/bts_2B1"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="0.5"
|
android:text="距感电源上电" />
|
|
<Button
|
android:id="@+id/btx_2B1"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="0.5"
|
android:text="距感电源下电" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="10"
|
android:orientation="horizontal"
|
android:weightSum="1">
|
|
<Button
|
android:id="@+id/bts_Smt"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="0.5"
|
android:text="扫描头上电" />
|
|
<Button
|
android:id="@+id/bts_Xmt"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="0.5"
|
android:text="扫描头下电" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="10"
|
android:orientation="horizontal"
|
android:weightSum="1">
|
|
<Button
|
android:id="@+id/bts_wBo"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="0.5"
|
android:text="微波距感测试" />
|
|
<Button
|
android:id="@+id/bt_BtLight"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="0.5"
|
android:text="光感测试" />
|
</LinearLayout>
|
|
|
<TextView
|
android:id="@+id/tv_Open"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
android:text="开灯距离:800mm" />
|
|
<SeekBar
|
android:id="@+id/seekBar_Open"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="10"
|
android:max="2500"
|
android:progress="800" />
|
|
<TextView
|
android:id="@+id/tv_Close"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
android:text="关灯距离:1200mm" />
|
|
<SeekBar
|
android:id="@+id/seekBar_Close"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="10"
|
android:max="2500"
|
android:progress="1200" />
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:layout_width="160dp"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:weightSum="1">
|
|
<Button
|
android:id="@+id/btn_config_system"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@color/colorAccent"
|
android:layout_margin="3dp"
|
android:text="系统功能控制" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:weightSum="1">
|
|
<Button
|
android:id="@+id/bts_4A41"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_weight="0.5"
|
android:text="4A4-0" />
|
|
<Button
|
android:id="@+id/bts_4A42"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_weight="0.5"
|
android:text="4A4-1" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:weightSum="1">
|
|
<Button
|
android:id="@+id/bts_2A2s1"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_weight="0.5"
|
android:text="2A2-0" />
|
|
<Button
|
android:id="@+id/bts_2A2s2"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_weight="0.5"
|
android:text="2A2-1" />
|
</LinearLayout>
|
|
<Spinner
|
android:id="@+id/spinner"
|
android:layout_width="match_parent"
|
android:layout_height="50dp" />
|
|
|
<Button
|
android:id="@+id/bt_open"
|
android:layout_width="match_parent"
|
android:layout_height="60dp"
|
android:layout_gravity="center"
|
android:text="打开距感" />
|
|
<Button
|
android:id="@+id/bt_close"
|
android:layout_width="match_parent"
|
android:layout_height="60dp"
|
android:layout_gravity="center"
|
android:text="关闭距感" />
|
|
<Button
|
android:id="@+id/bt_Weigen"
|
android:layout_width="match_parent"
|
android:layout_height="60dp"
|
android:layout_gravity="center"
|
android:text="伟根测试" />
|
|
<TextView
|
android:id="@+id/tv_jl"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text=""
|
android:textColor="@color/colorPrimary"
|
android:textSize="35sp" />
|
</LinearLayout>
|
|
</LinearLayout>
|