<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/white" android:orientation="vertical"> <View android:id="@+id/statusBarView" android:layout_width="match_parent" android:layout_height="0dp" android:background="#00000000" /> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="#EFEFEF"> <com.amap.api.maps.MapView android:id="@+id/mapView" android:layout_width="match_parent" android:layout_height="match_parent" /> <LinearLayout android:id="@+id/constraintLayout" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#D6EEFE" android:orientation="vertical" android:paddingHorizontal="@dimen/dp_10" android:paddingVertical="3dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_horizontal" android:orientation="vertical"> <TextView android:id="@+id/deviceModelView" android:layout_width="match_parent" android:layout_height="wrap_content" android:fontFamily="sans-serif-medium" android:paddingVertical="3dp" android:text="产品型号:未连接" android:textColor="#496677" android:textSize="@dimen/sp_16" /> <TextView android:id="@+id/deviceCodeView" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingVertical="3dp" android:text="设备编号:未连接" android:textColor="#496677" android:textSize="@dimen/sp_14" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <TextView android:id="@+id/inspectNameView" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginEnd="5dp" android:layout_weight="1" android:hint="未开始巡检" android:paddingVertical="3dp" android:singleLine="true" android:textColor="@color/black" android:textSize="@dimen/sp_14" /> <TextView android:id="@+id/inspectTimeView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="5dp" android:paddingVertical="3dp" android:textColor="@color/black" android:textSize="@dimen/sp_14" /> </LinearLayout> </LinearLayout> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/constraintLayout" android:layout_marginStart="15dp" android:layout_marginTop="@dimen/dp_10" android:orientation="vertical"> <com.qmuiteam.qmui.alpha.QMUIAlphaImageButton android:id="@+id/stopInspectButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/bg_image_button_layout" android:padding="@dimen/dp_10" android:src="@drawable/ic_off" /> <com.qmuiteam.qmui.alpha.QMUIAlphaImageButton android:id="@+id/bluetoothButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginVertical="@dimen/dp_10" android:background="@drawable/bg_image_button_layout" android:padding="@dimen/dp_10" android:src="@drawable/ic_bluetooth" /> <com.qmuiteam.qmui.alpha.QMUIAlphaImageButton android:id="@+id/retrySendButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/bg_image_button_layout" android:padding="@dimen/dp_10" android:src="@drawable/ic_refresh" /> <com.qmuiteam.qmui.alpha.QMUIAlphaImageButton android:id="@+id/addInspectionButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginVertical="@dimen/dp_10" android:background="@drawable/bg_image_button_layout" android:padding="@dimen/dp_10" android:src="@drawable/ic_add_black" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_above="@id/newEventButton" android:layout_marginHorizontal="20dp" android:orientation="horizontal"> <androidx.cardview.widget.CardView android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginEnd="5dp" android:layout_weight="1" app:cardCornerRadius="5dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/white" android:gravity="center_horizontal" android:orientation="vertical"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="20dp" android:layout_marginBottom="@dimen/dp_10" android:text="当前测量值" android:textColor="@color/black" /> <TextView android:id="@+id/currentValueView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/dp_10" android:layout_marginBottom="20dp" android:text="--" android:textColor="@color/black" /> </LinearLayout> </androidx.cardview.widget.CardView> <androidx.cardview.widget.CardView android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginEnd="5dp" android:layout_weight="1" app:cardCornerRadius="5dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/white" android:gravity="center_horizontal" android:orientation="vertical"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="20dp" android:layout_marginBottom="@dimen/dp_10" android:text="报警设置值" android:textColor="@color/black" /> <TextView android:id="@+id/settingsValueView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/dp_10" android:layout_marginBottom="20dp" android:text="--" android:textColor="@color/black" /> </LinearLayout> </androidx.cardview.widget.CardView> <androidx.cardview.widget.CardView android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginEnd="5dp" android:layout_weight="1" app:cardCornerRadius="5dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/white" android:gravity="center_horizontal" android:orientation="vertical"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="20dp" android:layout_marginBottom="@dimen/dp_10" android:text="最大值" android:textColor="@color/black" /> <TextView android:id="@+id/maxValueView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/dp_10" android:layout_marginBottom="20dp" android:text="--" android:textColor="@color/black" /> </LinearLayout> </androidx.cardview.widget.CardView> </LinearLayout> <Button android:id="@+id/newEventButton" style="@style/MainButtonStyle" android:layout_alignParentBottom="true" android:layout_marginHorizontal="20dp" android:layout_marginTop="20dp" android:layout_marginBottom="20dp" android:text="新建事件" /> </RelativeLayout> </LinearLayout>