|
|
|
@ -11,6 +11,9 @@ |
|
|
|
android:orientation="vertical"> |
|
|
|
|
|
|
|
<!--工作区显示--> |
|
|
|
|
|
|
|
|
|
|
|
<!--报错区显示--> |
|
|
|
<LinearLayout |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="match_parent" |
|
|
|
@ -18,13 +21,12 @@ |
|
|
|
<!--左侧显示半框--> |
|
|
|
<LinearLayout |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_weight="1" |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:layout_marginVertical="12dp" |
|
|
|
android:layout_marginHorizontal="4dp" |
|
|
|
android:orientation="vertical" |
|
|
|
android:layout_marginVertical="12dp" |
|
|
|
android:layout_weight="1" |
|
|
|
android:background="@drawable/orange_rounded_rectangle" |
|
|
|
> |
|
|
|
android:orientation="vertical"> |
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
android:layout_width="match_parent" |
|
|
|
@ -43,6 +45,7 @@ |
|
|
|
android:textColor="@color/black" |
|
|
|
android:textSize="12dp" |
|
|
|
android:textStyle="bold" /> |
|
|
|
|
|
|
|
<TextView |
|
|
|
android:id="@+id/tv_signal" |
|
|
|
android:layout_width="0dp" |
|
|
|
@ -53,6 +56,7 @@ |
|
|
|
android:textColor="@color/navy_blue" |
|
|
|
android:textSize="15sp" |
|
|
|
android:textStyle="bold" /> |
|
|
|
|
|
|
|
<TextView |
|
|
|
android:layout_width="35dp" |
|
|
|
android:layout_height="match_parent" |
|
|
|
@ -75,14 +79,15 @@ |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:layout_gravity="center" |
|
|
|
android:layout_marginLeft="8dp" |
|
|
|
android:layout_weight="1" |
|
|
|
android:gravity="left|center" |
|
|
|
android:text="@string/KnifeReadyComplete" |
|
|
|
android:layout_marginLeft="8dp" |
|
|
|
|
|
|
|
android:textColor="@color/black" |
|
|
|
android:textSize="12dp" |
|
|
|
android:textStyle="bold" /> |
|
|
|
|
|
|
|
<TextView |
|
|
|
android:id="@+id/kinfe_signal" |
|
|
|
android:layout_width="0dp" |
|
|
|
@ -108,19 +113,20 @@ |
|
|
|
<LinearLayout |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="0dp" |
|
|
|
android:layout_weight="1" |
|
|
|
> |
|
|
|
android:layout_weight="1"> |
|
|
|
|
|
|
|
<TextView |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:layout_gravity="center" |
|
|
|
android:layout_marginLeft="8dp" |
|
|
|
android:layout_weight="1" |
|
|
|
android:gravity="left|center" |
|
|
|
android:layout_marginLeft="8dp" |
|
|
|
android:text="@string/measure_distance1" |
|
|
|
android:textColor="@color/black" |
|
|
|
android:textSize="12dp" |
|
|
|
android:textStyle="bold" /> |
|
|
|
|
|
|
|
<TextView |
|
|
|
android:id="@+id/measure_distance1" |
|
|
|
android:layout_width="0dp" |
|
|
|
@ -195,14 +201,15 @@ |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:layout_gravity="center" |
|
|
|
android:layout_marginLeft="8dp" |
|
|
|
android:layout_weight="1" |
|
|
|
android:gravity="left|center" |
|
|
|
android:text="@string/measure_distance3" |
|
|
|
android:layout_marginLeft="8dp" |
|
|
|
|
|
|
|
android:textColor="@color/black" |
|
|
|
android:textSize="12dp" |
|
|
|
android:textStyle="bold" /> |
|
|
|
|
|
|
|
<TextView |
|
|
|
android:id="@+id/measure_distance3" |
|
|
|
android:layout_width="0dp" |
|
|
|
@ -236,14 +243,15 @@ |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:layout_gravity="center" |
|
|
|
android:layout_marginLeft="8dp" |
|
|
|
android:layout_weight="1" |
|
|
|
android:gravity="left|center" |
|
|
|
android:text="@string/RobotSpeed" |
|
|
|
android:layout_marginLeft="8dp" |
|
|
|
|
|
|
|
android:textColor="@color/black" |
|
|
|
android:textSize="12dp" |
|
|
|
android:textStyle="bold" /> |
|
|
|
|
|
|
|
<TextView |
|
|
|
android:id="@+id/robot_speed" |
|
|
|
android:layout_width="0dp" |
|
|
|
@ -277,14 +285,15 @@ |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:layout_gravity="center" |
|
|
|
android:layout_marginLeft="8dp" |
|
|
|
android:layout_weight="1" |
|
|
|
android:gravity="left|center" |
|
|
|
android:text="@string/KnifePosition" |
|
|
|
android:layout_marginLeft="8dp" |
|
|
|
|
|
|
|
android:textColor="@color/black" |
|
|
|
android:textSize="12dp" |
|
|
|
android:textStyle="bold" /> |
|
|
|
|
|
|
|
<TextView |
|
|
|
android:id="@+id/kinfe_position" |
|
|
|
android:layout_width="0dp" |
|
|
|
@ -393,12 +402,11 @@ |
|
|
|
<!--右侧显示半框--> |
|
|
|
<LinearLayout |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_weight="3" |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:layout_marginVertical="8dp" |
|
|
|
android:layout_marginHorizontal="4dp" |
|
|
|
android:orientation="vertical" |
|
|
|
> |
|
|
|
android:layout_marginVertical="8dp" |
|
|
|
android:layout_weight="3" |
|
|
|
android:orientation="vertical"> |
|
|
|
|
|
|
|
<!-- 第二行,2个帧布局--> |
|
|
|
<LinearLayout |
|
|
|
@ -444,7 +452,6 @@ |
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</FrameLayout> |
|
|
|
<!-- 第二行,第2个帧布局--> |
|
|
|
<FrameLayout |
|
|
|
@ -478,11 +485,11 @@ |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:layout_weight="2" |
|
|
|
android:background="@drawable/rounded_edittext" |
|
|
|
android:digits="0123456789" |
|
|
|
android:gravity="center" |
|
|
|
android:hint="请输入0到30之间的数字" |
|
|
|
android:imeOptions="actionDone" |
|
|
|
android:inputType="number" |
|
|
|
android:digits="0123456789" |
|
|
|
android:text="1" |
|
|
|
android:textColor="@color/blue_green" |
|
|
|
android:textCursorDrawable="@drawable/my_cursor" |
|
|
|
@ -504,7 +511,6 @@ |
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</FrameLayout> |
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
@ -558,11 +564,11 @@ |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:layout_weight="2" |
|
|
|
android:background="@drawable/rounded_edittext" |
|
|
|
android:digits="0123456789" |
|
|
|
android:gravity="center" |
|
|
|
android:hint="请输入0到30之间的数字" |
|
|
|
android:imeOptions="actionDone" |
|
|
|
android:inputType="number" |
|
|
|
android:digits="0123456789" |
|
|
|
android:text="10" |
|
|
|
android:textColor="@color/blue_green" |
|
|
|
android:textCursorDrawable="@drawable/my_cursor" |
|
|
|
@ -574,8 +580,8 @@ |
|
|
|
|
|
|
|
<TextView |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_weight="1" |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:layout_weight="1" |
|
|
|
android:gravity="center" |
|
|
|
android:text="rpm" |
|
|
|
android:textColor="@color/dark_ink_blue" |
|
|
|
@ -584,7 +590,6 @@ |
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</FrameLayout> |
|
|
|
<!-- 第二行,第2个帧布局--> |
|
|
|
<FrameLayout |
|
|
|
@ -628,11 +633,11 @@ |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:layout_weight="2" |
|
|
|
android:background="@drawable/rounded_edittext" |
|
|
|
android:digits="0123456789" |
|
|
|
android:gravity="center" |
|
|
|
android:hint="请输入0到20之间的数字" |
|
|
|
android:imeOptions="actionDone" |
|
|
|
android:inputType="number" |
|
|
|
android:digits="0123456789" |
|
|
|
android:text="1" |
|
|
|
android:textColor="@color/blue_green" |
|
|
|
android:textCursorDrawable="@drawable/my_cursor" |
|
|
|
@ -644,8 +649,8 @@ |
|
|
|
|
|
|
|
<TextView |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_weight="1" |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:layout_weight="1" |
|
|
|
android:gravity="center" |
|
|
|
android:text="mm" |
|
|
|
android:textColor="@color/dark_ink_blue" |
|
|
|
@ -653,7 +658,6 @@ |
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</FrameLayout> |
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
@ -672,6 +676,11 @@ |
|
|
|
android:layout_weight="1" |
|
|
|
android:background="@drawable/blue_rounded_rectangle"> |
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:orientation="horizontal"> |
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="match_parent" |
|
|
|
@ -683,34 +692,53 @@ |
|
|
|
android:layout_gravity="center" |
|
|
|
android:layout_weight="1" |
|
|
|
android:gravity="left|center" |
|
|
|
android:text="@string/ScanLen" |
|
|
|
android:textColor="@color/dark_ink_blue" |
|
|
|
android:textSize="15dp" |
|
|
|
android:textStyle="bold" /> |
|
|
|
<!-- <EditText--> |
|
|
|
<!-- android:id="@+id/Maintv_HCompensationSwitchTo32"--> |
|
|
|
|
|
|
|
<!-- <TextView--> |
|
|
|
<!-- android:layout_width="0dp"--> |
|
|
|
<!-- android:layout_height="match_parent"--> |
|
|
|
<!-- android:layout_gravity="center"--> |
|
|
|
<!-- android:layout_weight="2"--> |
|
|
|
<!-- android:background="@drawable/rounded_edittext"--> |
|
|
|
<!-- android:imeOptions="actionDone"--> |
|
|
|
<!-- android:hint="请输入0到1之间的数字"--> |
|
|
|
<!-- android:inputType="number"--> |
|
|
|
<!-- android:gravity="center"--> |
|
|
|
<!-- android:text="0"--> |
|
|
|
<!-- android:textColor="@color/blue_green"--> |
|
|
|
<!-- android:textSize="20dp"--> |
|
|
|
<!-- android:gravity="left|center"--> |
|
|
|
|
|
|
|
<!-- android:textColor="@color/dark_ink_blue"--> |
|
|
|
<!-- android:textSize="15dp"--> |
|
|
|
<!-- android:textStyle="bold" />--> |
|
|
|
|
|
|
|
<TextView |
|
|
|
android:layout_width="50dp" |
|
|
|
<EditText |
|
|
|
android:id="@+id/scan_len" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:layout_weight="2" |
|
|
|
android:background="@drawable/rounded_edittext" |
|
|
|
android:digits="0123456789" |
|
|
|
android:gravity="center" |
|
|
|
android:text="" |
|
|
|
android:hint="请输入0到20之间的数字" |
|
|
|
android:imeOptions="actionDone" |
|
|
|
android:inputType="number" |
|
|
|
android:text="200" |
|
|
|
android:textColor="@color/blue_green" |
|
|
|
android:textSize="15dp" /> |
|
|
|
android:textCursorDrawable="@drawable/my_cursor" |
|
|
|
android:textSize="20dp" |
|
|
|
android:textStyle="bold"> |
|
|
|
|
|
|
|
</EditText> |
|
|
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:layout_weight="1" |
|
|
|
android:gravity="center" |
|
|
|
android:text="mm" |
|
|
|
android:textColor="@color/dark_ink_blue" |
|
|
|
android:textSize="15dp" /> |
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
|
|
</FrameLayout> |
|
|
|
@ -723,6 +751,11 @@ |
|
|
|
android:layout_weight="1" |
|
|
|
android:background="@drawable/blue_rounded_rectangle"> |
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:orientation="horizontal"> |
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="match_parent" |
|
|
|
@ -734,33 +767,51 @@ |
|
|
|
android:layout_gravity="center" |
|
|
|
android:layout_weight="1" |
|
|
|
android:gravity="left|center" |
|
|
|
|
|
|
|
android:text="@string/ScanBackLen" |
|
|
|
android:textColor="@color/dark_ink_blue" |
|
|
|
android:textSize="15dp" |
|
|
|
android:textStyle="bold" /> |
|
|
|
<!-- <EditText--> |
|
|
|
<!-- android:id="@+id/Maintv_PressLimitTo32"--> |
|
|
|
|
|
|
|
<!-- <TextView--> |
|
|
|
<!-- android:layout_width="0dp"--> |
|
|
|
<!-- android:layout_height="match_parent"--> |
|
|
|
<!-- android:layout_gravity="center"--> |
|
|
|
<!-- android:layout_weight="2"--> |
|
|
|
<!-- android:background="@drawable/rounded_edittext"--> |
|
|
|
<!-- android:imeOptions="actionDone"--> |
|
|
|
<!-- android:hint="请输入0到3000之间的数字"--> |
|
|
|
<!-- android:inputType="number"--> |
|
|
|
<!-- android:gravity="left|center"--> |
|
|
|
|
|
|
|
<!-- android:gravity="center"--> |
|
|
|
<!-- android:text="1"--> |
|
|
|
<!-- android:textColor="@color/blue_green"--> |
|
|
|
<!-- android:textSize="20dp"--> |
|
|
|
<!-- android:textColor="@color/dark_ink_blue"--> |
|
|
|
<!-- android:textSize="15dp"--> |
|
|
|
<!-- android:textStyle="bold" />--> |
|
|
|
|
|
|
|
<TextView |
|
|
|
android:layout_width="50dp" |
|
|
|
<EditText |
|
|
|
android:id="@+id/scan_back_len" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:layout_weight="2" |
|
|
|
android:background="@drawable/rounded_edittext" |
|
|
|
android:digits="0123456789" |
|
|
|
android:gravity="center" |
|
|
|
|
|
|
|
android:hint="请输入0到20之间的数字" |
|
|
|
android:imeOptions="actionDone" |
|
|
|
android:inputType="number" |
|
|
|
android:text="10" |
|
|
|
android:textColor="@color/blue_green" |
|
|
|
android:textCursorDrawable="@drawable/my_cursor" |
|
|
|
android:textSize="20dp" |
|
|
|
android:textStyle="bold"> |
|
|
|
|
|
|
|
</EditText> |
|
|
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:layout_weight="1" |
|
|
|
android:gravity="center" |
|
|
|
android:text="mm" |
|
|
|
android:textColor="@color/dark_ink_blue" |
|
|
|
android:textSize="15dp" /> |
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
@ -780,8 +831,8 @@ |
|
|
|
android:id="@+id/btn_save" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:textColor="@color/blue_green" |
|
|
|
android:background="@color/trasnparent" |
|
|
|
android:textColor="@color/blue_green" |
|
|
|
android:textStyle="bold" /> |
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
@ -792,9 +843,6 @@ |
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--报错区显示--> |
|
|
|
<LinearLayout |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="50dp" |
|
|
|
@ -809,13 +857,14 @@ |
|
|
|
android:text="报错信息" |
|
|
|
android:textColor="@color/black" |
|
|
|
android:textStyle="bold"/> |
|
|
|
|
|
|
|
<TextView |
|
|
|
android:id="@+id/error_text_view" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_height="40dp" |
|
|
|
android:layout_margin="4dp" |
|
|
|
android:gravity="center" |
|
|
|
android:layout_weight="1" |
|
|
|
android:gravity="center" |
|
|
|
|
|
|
|
android:text="无" |
|
|
|
android:textColor="@color/black" |
|
|
|
|