|
@@ -1,354 +1,431 @@
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
-<layout xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
- xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
-
|
|
|
|
|
|
+<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
- xmlns:binding="http://schemas.android.com/apk/res-auto">
|
|
|
|
|
|
+
|
|
|
|
+ xmlns:binding="http://schemas.android.com/apk/res-auto"
|
|
|
|
+ xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
|
|
<data>
|
|
<data>
|
|
|
|
+
|
|
<variable
|
|
<variable
|
|
name="viewModal"
|
|
name="viewModal"
|
|
- type="com.siwei.recyclebox.ui.main.MainViewModel"/>
|
|
|
|
-<!-- 关联view model-->
|
|
|
|
|
|
+ type="com.siwei.recyclebox.ui.main.MainViewModel" />
|
|
|
|
+ <!-- 关联view model-->
|
|
</data>
|
|
</data>
|
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
|
+ <ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
- android:layout_height="match_parent"
|
|
|
|
- android:orientation="vertical">
|
|
|
|
-
|
|
|
|
- <TableLayout
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
- android:collapseColumns="1"
|
|
|
|
- android:layout_height="wrap_content">
|
|
|
|
- <android.support.constraint.ConstraintLayout
|
|
|
|
|
|
+ android:layout_height="match_parent">
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:orientation="horizontal">
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="1040dp"
|
|
|
|
+ android:background="#FAFAD2"
|
|
|
|
+ android:orientation="vertical"
|
|
|
|
+ android:padding="10dp">
|
|
|
|
+ <!--IMEI-->
|
|
|
|
+ <LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
- android:layout_height="130dp"
|
|
|
|
- android:padding="16dp">
|
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
+ android:padding="10dp">
|
|
|
|
+
|
|
|
|
+ <Button
|
|
|
|
+ android:id="@+id/btn1"
|
|
|
|
+ android:layout_width="150dp"
|
|
|
|
+ android:layout_height="80dp"
|
|
|
|
+ android:onClick="@{viewModal.btnQeryIMEI}"
|
|
|
|
+ android:text="查询IMEI"
|
|
|
|
+ android:textSize="24sp"
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/textView"
|
|
|
|
+ android:layout_width="400dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="1dp"
|
|
|
|
+ android:text="@={viewModal.textIMEI}"
|
|
|
|
+ android:textSize="30dp"
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/btn1"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
+ </LinearLayout>
|
|
|
|
+ <!--设备接口按钮-->
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
+ android:padding="10dp">
|
|
|
|
+
|
|
|
|
+ <Button
|
|
|
|
+ android:id="@+id/test_but"
|
|
|
|
+ android:layout_width="150dp"
|
|
|
|
+ android:layout_height="80dp"
|
|
|
|
+ android:onClick="@{viewModal.test}"
|
|
|
|
+ android:text="设备接口"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/textView3"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:text="@={viewModal.textTest}"
|
|
|
|
+ android:textSize="30dp" />
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ </LinearLayout>
|
|
|
|
+ <!--数据上报按钮-->
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
+ android:padding="10dp">
|
|
|
|
+
|
|
|
|
+ <Button
|
|
|
|
+ android:layout_width="150dp"
|
|
|
|
+ android:layout_height="80dp"
|
|
|
|
+ android:onClick="@{viewModal.btnClickReport}"
|
|
|
|
+ android:text="数据上报"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ </LinearLayout>
|
|
|
|
+ <!--数据上报信息-->
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
+ android:padding="10dp">
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginStart="30dp"
|
|
|
|
+ android:lineSpacingMultiplier="1.5"
|
|
|
|
+ android:text="@={viewModal.textReportData}"
|
|
|
|
+ android:textColor="#FF0000"
|
|
|
|
+ android:textSize="30dp" />
|
|
|
|
+
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="1040dp"
|
|
|
|
+ android:orientation="vertical">
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:background="#a0ffc0"
|
|
|
|
+ android:orientation="vertical"
|
|
|
|
+ android:padding="20dp">
|
|
|
|
+
|
|
|
|
+ <!-- 开关门-->
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:orientation="horizontal">
|
|
|
|
|
|
<Button
|
|
<Button
|
|
- app:layout_constraintTop_toTopOf="parent"
|
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
- android:layout_width="120dp"
|
|
|
|
- android:layout_height="96dp"
|
|
|
|
- android:onClick="@{viewModal.btnQeryIMEI}"
|
|
|
|
- android:text="查询IMEI:**"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- android:id="@+id/btn1"/>
|
|
|
|
|
|
+ android:layout_width="150dp"
|
|
|
|
+ android:layout_height="80dp"
|
|
|
|
+ android:onClick="@{viewModal.btnClickPullRod}"
|
|
|
|
+ android:text="开投递门"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
+
|
|
|
|
+ <Button
|
|
|
|
+ android:layout_width="150dp"
|
|
|
|
+ android:layout_height="80dp"
|
|
|
|
+ android:onClick="@{viewModal.btnClickPushRod}"
|
|
|
|
+ android:text="关投递门"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
+ <!-- 开锁语音-->
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:orientation="horizontal">
|
|
|
|
+
|
|
|
|
+ <Button
|
|
|
|
+ android:layout_width="150dp"
|
|
|
|
+ android:layout_height="80dp"
|
|
|
|
+ android:onClick="@{viewModal.btnClickOpenLock}"
|
|
|
|
+ android:text="开收运锁"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
+
|
|
|
|
+ <Button
|
|
|
|
+ android:layout_width="150dp"
|
|
|
|
+ android:layout_height="80dp"
|
|
|
|
+ android:onClick="@{viewModal.btnClickSpeech}"
|
|
|
|
+ android:text="播放语音"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
+ </LinearLayout>
|
|
|
|
+ <!-- 电流阈值-->
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:orientation="horizontal">
|
|
|
|
+ <!--查询电流值-->
|
|
|
|
+ <Button
|
|
|
|
+ android:layout_width="150dp"
|
|
|
|
+ android:layout_height="80dp"
|
|
|
|
+ android:onClick="@{viewModal.btnClickqueryCurrent}"
|
|
|
|
+ android:text="查询电流是否过大"
|
|
|
|
+ android:layout_marginRight="30dp"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
+
|
|
<TextView
|
|
<TextView
|
|
- app:layout_constraintLeft_toRightOf="@+id/btn1"
|
|
|
|
- app:layout_constraintTop_toTopOf="parent"
|
|
|
|
- android:layout_width="400dp"
|
|
|
|
- android:layout_height="77dp"
|
|
|
|
- android:layout_marginStart="1dp"
|
|
|
|
- android:layout_marginTop="1dp"
|
|
|
|
- android:layout_marginEnd="2dp"
|
|
|
|
- android:text="@={viewModal.textIMEI}"
|
|
|
|
- android:textSize="30dp" />
|
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:text="@={viewModal.textqueryCurrentData}"
|
|
|
|
+ android:textSize="28sp" />
|
|
|
|
+
|
|
|
|
+ </LinearLayout>
|
|
<LinearLayout
|
|
<LinearLayout
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
- android:layout_height="match_parent">
|
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:orientation="horizontal">
|
|
|
|
+ <!--查询电流值-->
|
|
<Button
|
|
<Button
|
|
android:layout_width="150dp"
|
|
android:layout_width="150dp"
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickrestartApp}"
|
|
|
|
- android:text="重启"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
|
|
+ android:layout_height="80dp"
|
|
|
|
+ android:onClick="@{viewModal.btnClickSetPowerBigger}"
|
|
|
|
+ android:text="增加电流阈值"
|
|
|
|
+ android:layout_marginRight="30dp"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
+
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <!-- 读距离-->
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:orientation="horizontal">
|
|
|
|
+
|
|
<Button
|
|
<Button
|
|
android:layout_width="150dp"
|
|
android:layout_width="150dp"
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickfinishApp}"
|
|
|
|
- android:text="关闭"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
|
|
+ android:layout_height="80dp"
|
|
|
|
+ android:layout_marginRight="30dp"
|
|
|
|
+ android:onClick="@{viewModal.btnReadDistance}"
|
|
|
|
+ android:text="读取距离"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:text="@={viewModal.textDistance}"
|
|
|
|
+ android:textSize="42sp" />
|
|
|
|
+ </LinearLayout>
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:orientation="horizontal">
|
|
|
|
+
|
|
<Button
|
|
<Button
|
|
android:layout_width="150dp"
|
|
android:layout_width="150dp"
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickrestartAndroid}"
|
|
|
|
- android:text="重启系统"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
|
|
+ android:layout_height="80dp"
|
|
|
|
+ android:layout_marginRight="30dp"
|
|
|
|
+ android:onClick="@{viewModal.btnInfrared}"
|
|
|
|
+ android:text="读取红外线"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:text="@={viewModal.textInfrared}"
|
|
|
|
+ android:textSize="42sp" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
- </android.support.constraint.ConstraintLayout>
|
|
|
|
- </TableLayout>
|
|
|
|
- <TableLayout
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
- android:collapseColumns="2"
|
|
|
|
- android:layout_height="wrap_content">
|
|
|
|
- <TableRow>
|
|
|
|
|
|
+
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
<LinearLayout
|
|
<LinearLayout
|
|
- android:id="@+id/linearLayout"
|
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
- android:layout_height="130dp"
|
|
|
|
- android:padding="16dp">
|
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:background="#CCCCFF"
|
|
|
|
+ android:orientation="vertical"
|
|
|
|
+ android:padding="20dp">
|
|
|
|
+
|
|
|
|
+ <Button
|
|
|
|
+ android:layout_width="150dp"
|
|
|
|
+ android:layout_height="80dp"
|
|
|
|
+ android:onClick="@{viewModal.btnClicksetScale}"
|
|
|
|
+ android:text="设置分度值"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
<LinearLayout
|
|
- android:layout_width="120dp"
|
|
|
|
- android:layout_height="match_parent">
|
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:orientation="horizontal">
|
|
|
|
+
|
|
<Button
|
|
<Button
|
|
- android:layout_width="120dp"
|
|
|
|
- android:layout_height="96dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickReport}"
|
|
|
|
- android:text="数据上报1.0"
|
|
|
|
|
|
+ android:layout_width="150dp"
|
|
|
|
+ android:layout_height="80dp"
|
|
|
|
+ android:onClick="@{viewModal.btnClickzeroCalibration}"
|
|
|
|
+ android:text="零度校准"
|
|
android:textSize="24sp" />
|
|
android:textSize="24sp" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:text="称盘无物且稳定,放10KG的砝码\n等8秒稳定后,点击下一个按钮"
|
|
|
|
+ android:textSize="25sp" />
|
|
|
|
+
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
+
|
|
|
|
+
|
|
<LinearLayout
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
- android:layout_height="match_parent">
|
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:orientation="horizontal">
|
|
|
|
+
|
|
|
|
+ <Button
|
|
|
|
+ android:id="@+id/button"
|
|
|
|
+ android:layout_width="150dp"
|
|
|
|
+ android:layout_height="80dp"
|
|
|
|
+ android:onClick="@{viewModal.btnClickweightCalibration}"
|
|
|
|
+ android:text="砝码校准"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
+
|
|
<TextView
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
- android:layout_height="77dp"
|
|
|
|
- android:layout_marginStart="1dp"
|
|
|
|
- android:layout_marginTop="1dp"
|
|
|
|
- android:layout_marginEnd="2dp"
|
|
|
|
- android:text="@={viewModal.textReportData}"
|
|
|
|
- android:textSize="30dp" />
|
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:text="取走砝码"
|
|
|
|
+ android:textSize="30sp" />
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
+ <Button
|
|
|
|
+ android:layout_width="150dp"
|
|
|
|
+ android:layout_height="80dp"
|
|
|
|
+ android:onClick="@{viewModal.btnClickclearWeight}"
|
|
|
|
+ android:text="称重清零去皮"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
+
|
|
|
|
+ <!-- 称重区 -->
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:orientation="horizontal">
|
|
|
|
+
|
|
|
|
+ <Button
|
|
|
|
+ android:layout_width="150dp"
|
|
|
|
+ android:layout_height="80dp"
|
|
|
|
+ android:onClick="@{viewModal.btnClickreadWeight}"
|
|
|
|
+ android:text="称重"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:text="@={viewModal.textReadWeightData}"
|
|
|
|
+ android:textAlignment="center"
|
|
|
|
+ android:textSize="42sp" />
|
|
|
|
+
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
- </TableRow>
|
|
|
|
- <TableRow>
|
|
|
|
-
|
|
|
|
- </TableRow>
|
|
|
|
- </TableLayout>
|
|
|
|
- <TableLayout
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
- android:shrinkColumns="3"
|
|
|
|
- android:layout_height="wrap_content">
|
|
|
|
- <TableRow>
|
|
|
|
- <Button
|
|
|
|
- android:layout_width="161dp"
|
|
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickPullRod}"
|
|
|
|
- android:text="开门"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
- <Button
|
|
|
|
- android:layout_width="154dp"
|
|
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickPushRod}"
|
|
|
|
- android:text="关门"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
|
|
|
|
- <Button
|
|
|
|
- android:layout_width="150dp"
|
|
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickOpenLock}"
|
|
|
|
- android:text="开锁"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
|
|
+
|
|
|
|
+ </LinearLayout>
|
|
|
|
+ <!-- 系统设置-->
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="1040dp"
|
|
|
|
+ android:background="#CCCCCC"
|
|
|
|
+ android:orientation="vertical"
|
|
|
|
+ android:padding="20dp">
|
|
|
|
+
|
|
<TextView
|
|
<TextView
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
|
+ android:layout_width="200dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
- android:text="开锁 3秒后 关锁"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
- <Button
|
|
|
|
- android:layout_width="150dp"
|
|
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickRodRepeat}"
|
|
|
|
- android:text="连续伸缩杆"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
- <Button
|
|
|
|
- android:id="@+id/button2"
|
|
|
|
- android:layout_width="150dp"
|
|
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickLockRepeat}"
|
|
|
|
- android:text="连续开锁"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
- <Button
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickqueryCurrent}"
|
|
|
|
- android:text="电流过大查询"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
- <TextView
|
|
|
|
- android:layout_width="50dp"
|
|
|
|
- android:layout_height="100dp"
|
|
|
|
- android:text="@={viewModal.textqueryCurrentData}"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
- <Button
|
|
|
|
- android:layout_width="150dp"
|
|
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickclearCurrent}"
|
|
|
|
- android:text="清除"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
-
|
|
|
|
- </TableRow>
|
|
|
|
- </TableLayout>
|
|
|
|
-
|
|
|
|
- <TableLayout
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:shrinkColumns="4">
|
|
|
|
- <TableRow>
|
|
|
|
- <Button
|
|
|
|
- android:layout_width="150dp"
|
|
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickSpeech}"
|
|
|
|
- android:text="播放语音"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
- <Button
|
|
|
|
- android:layout_width="150dp"
|
|
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickOpenLight1234}"
|
|
|
|
- android:text="开灯1234"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
- <Button
|
|
|
|
- android:layout_width="150dp"
|
|
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickSendMsg}"
|
|
|
|
- android:text="事件测试"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
- <Button
|
|
|
|
- android:layout_width="150dp"
|
|
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickGetDeviceValue}"
|
|
|
|
- android:text="获取属性"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
- <Button
|
|
|
|
- android:layout_width="150dp"
|
|
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickOpenLight1}"
|
|
|
|
- android:text="开灯1"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
- <Button
|
|
|
|
- android:layout_width="150dp"
|
|
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickOpenLight2}"
|
|
|
|
- android:text="开灯2"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
- <Button
|
|
|
|
- android:layout_width="150dp"
|
|
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickOpenLight3}"
|
|
|
|
- android:text="开灯3"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
- <Button
|
|
|
|
- android:layout_width="150dp"
|
|
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickOpenLight4}"
|
|
|
|
- android:text="开灯4"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
- </TableRow>
|
|
|
|
- </TableLayout>
|
|
|
|
- <TableLayout
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:shrinkColumns="5">
|
|
|
|
- <TableRow>
|
|
|
|
- <Button
|
|
|
|
- android:layout_width="150dp"
|
|
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickSetPowerBigger}"
|
|
|
|
- android:text="设置更大的电流阈值"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
- <Button
|
|
|
|
- android:layout_width="150dp"
|
|
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickQueryPower}"
|
|
|
|
- android:text="查询电流值"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
- </TableRow>
|
|
|
|
- </TableLayout>
|
|
|
|
- <TableLayout
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:shrinkColumns="6">
|
|
|
|
- <TableRow>
|
|
|
|
|
|
+ android:layout_marginTop="1dp"
|
|
|
|
+ android:text="@={viewModal.Time}"
|
|
|
|
+ android:textSize="24dp" />
|
|
|
|
+
|
|
<Button
|
|
<Button
|
|
android:layout_width="150dp"
|
|
android:layout_width="150dp"
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClicksetScale}"
|
|
|
|
- android:text="设置分度值"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
- <TextView
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="100dp"
|
|
|
|
- android:text="→"
|
|
|
|
- android:textSize="42sp"
|
|
|
|
- android:textAlignment="center"
|
|
|
|
- />
|
|
|
|
|
|
+ android:layout_height="80dp"
|
|
|
|
+ android:onClick="@{viewModal.btnClickrestartApp}"
|
|
|
|
+ android:text="重启"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
+
|
|
<Button
|
|
<Button
|
|
android:layout_width="150dp"
|
|
android:layout_width="150dp"
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickzeroCalibration}"
|
|
|
|
- android:text="零度校准"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
- <TextView
|
|
|
|
- android:layout_width="500dp"
|
|
|
|
- android:layout_height="100dp"
|
|
|
|
- android:text="称盘无物且稳定,放10KG的砝码,等8秒稳定后,点击下一个按钮"
|
|
|
|
- android:textSize="30sp"
|
|
|
|
- />
|
|
|
|
|
|
+ android:layout_height="80dp"
|
|
|
|
+ android:onClick="@{viewModal.btnClickfinishApp}"
|
|
|
|
+ android:text="关闭"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
+
|
|
<Button
|
|
<Button
|
|
- android:id="@+id/button"
|
|
|
|
- android:layout_width="150dp"
|
|
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickweightCalibration}"
|
|
|
|
- android:text="砝码校准"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
- <TextView
|
|
|
|
android:layout_width="150dp"
|
|
android:layout_width="150dp"
|
|
- android:layout_height="100dp"
|
|
|
|
- android:text="取走砝码"
|
|
|
|
- android:textSize="30sp"
|
|
|
|
- />
|
|
|
|
|
|
+ android:layout_height="80dp"
|
|
|
|
+ android:onClick="@{viewModal.btnClickrestartAndroid}"
|
|
|
|
+ android:text="重启系统"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
+
|
|
<Button
|
|
<Button
|
|
android:layout_width="150dp"
|
|
android:layout_width="150dp"
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickclearWeight}"
|
|
|
|
- android:text="称重清零去皮"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
- </TableRow>
|
|
|
|
- </TableLayout>
|
|
|
|
- <TableLayout
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
- android:layout_height="wrap_content">
|
|
|
|
- <TextView
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="100dp"
|
|
|
|
- android:text="@={viewModal.textReadWeightData}"
|
|
|
|
- android:textSize="42sp"
|
|
|
|
- android:textAlignment="center"
|
|
|
|
- />
|
|
|
|
- </TableLayout>
|
|
|
|
- <TableLayout
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:shrinkColumns="7">
|
|
|
|
- <Button
|
|
|
|
- android:layout_width="130dp"
|
|
|
|
- android:layout_height="100dp"
|
|
|
|
- android:onClick="@{viewModal.btnClickreadWeight}"
|
|
|
|
- android:text="称重"
|
|
|
|
- android:textSize="24sp"
|
|
|
|
- />
|
|
|
|
- </TableLayout>
|
|
|
|
-
|
|
|
|
- </LinearLayout>
|
|
|
|
|
|
+ android:layout_height="80dp"
|
|
|
|
+ android:onClick="@{viewModal.btnEmpty}"
|
|
|
|
+ android:text="清空列表"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
+
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="1040dp"
|
|
|
|
+ android:background="#ccffff"
|
|
|
|
+ android:orientation="vertical"
|
|
|
|
+ android:padding="20dp">
|
|
|
|
+
|
|
|
|
+ <ScrollView
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="900dp"
|
|
|
|
+ android:background="#ccffff">
|
|
|
|
+
|
|
|
|
+ <FrameLayout
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:focusable="true"
|
|
|
|
+ android:focusableInTouchMode="true">
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/list"
|
|
|
|
+ android:layout_width="400dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="1dp"
|
|
|
|
+
|
|
|
|
+ android:text="@={viewModal.list}"
|
|
|
|
+ android:textColor="#a00000"
|
|
|
|
+ android:textSize="24dp"
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/btn1"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
+
|
|
|
|
+<!-- <ListView-->
|
|
|
|
+<!-- android:id="@+id/list"-->
|
|
|
|
+<!-- android:layout_width="match_parent"-->
|
|
|
|
+<!-- android:layout_height="match_parent" />-->
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ </FrameLayout>
|
|
|
|
+
|
|
|
|
+ </ScrollView>
|
|
|
|
+
|
|
|
|
|
|
|
|
+ </LinearLayout>
|
|
|
|
+ </LinearLayout>
|
|
|
|
+ </ScrollView>
|
|
</layout>
|
|
</layout>
|