| | |
| | | |
| | | <!-- Card Header --> |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:orientation="horizontal" |
| | | android:gravity="center_vertical" |
| | | android:padding="16dp" |
| | | android:background="#FAFAFA"> |
| | | |
| | | <View |
| | | android:layout_width="4dp" |
| | | android:layout_height="16dp" |
| | | android:background="@color/base_color" |
| | | android:layout_marginEnd="8dp"/> |
| | | |
| | | <TextView |
| | | android:layout_width="0dp" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_weight="1" |
| | | android:text="监控详情" |
| | | android:textSize="16sp" |
| | | android:textStyle="bold" |
| | | android:textColor="#333333" /> |
| | | |
| | | <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton |
| | | android:id="@+id/btn_read_data" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="32dp" |
| | | android:text="读取数据" |
| | | android:textColor="@color/white" |
| | | android:textSize="12sp" |
| | | android:paddingStart="12dp" |
| | | android:paddingEnd="12dp" |
| | | app:qmui_backgroundColor="@color/base_color" |
| | | app:qmui_radius="4dp"/> |
| | | </LinearLayout> |
| | | android:orientation="horizontal" |
| | | android:gravity="center_vertical" |
| | | android:padding="16dp" |
| | | android:background="@color/white"> |
| | | |
| | | <View |
| | | android:layout_width="4dp" |
| | | android:layout_height="16dp" |
| | | android:background="@color/base_color" |
| | | android:layout_marginEnd="8dp"/> |
| | | |
| | | <TextView |
| | | android:id="@+id/tv_monitor_title" |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_weight="1" |
| | | android:text="监控详情" |
| | | android:textSize="16sp" |
| | | android:textStyle="bold" |
| | | android:textColor="#333333" |
| | | android:clickable="true" |
| | | android:focusable="true" |
| | | /> |
| | | |
| | | <TextView |
| | | android:id="@+id/tv_monitor_update_time" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="" |
| | | android:textSize="12sp" |
| | | android:textColor="#999999"/> |
| | | </LinearLayout> |
| | | |
| | | <View |
| | | android:layout_width="match_parent" |
| | |
| | | android:orientation="horizontal" |
| | | android:gravity="center_vertical" |
| | | android:padding="16dp" |
| | | android:background="#FAFAFA"> |
| | | android:background="@color/white"> |
| | | |
| | | <View |
| | | android:layout_width="4dp" |
| | |
| | | android:orientation="vertical" |
| | | android:padding="16dp"> |
| | | |
| | | <!-- Layer Input --> |
| | | <!-- Grid Layout for Parameters --> |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:orientation="vertical" |
| | | android:layout_marginBottom="16dp"> |
| | | |
| | | |
| | | <!-- Row 1: Labels --> |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:orientation="horizontal" |
| | | android:gravity="center_vertical" |
| | | android:layout_marginBottom="8dp"> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | <!-- Layer Label --> |
| | | <LinearLayout |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:text="层数" |
| | | android:textSize="14sp" |
| | | android:textColor="#666666"/> |
| | | |
| | | <TextView |
| | | android:id="@+id/tv_layer_status" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:textSize="10sp" |
| | | android:layout_marginStart="8dp"/> |
| | | </LinearLayout> |
| | | |
| | | <EditText |
| | | android:id="@+id/et_layer" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="48dp" |
| | | android:background="@drawable/bg_input_field" |
| | | android:paddingStart="16dp" |
| | | android:paddingEnd="16dp" |
| | | android:hint="层数 (1-30)" |
| | | android:textColorHint="#CCCCCC" |
| | | android:textSize="14sp" |
| | | android:focusable="false" |
| | | android:focusableInTouchMode="false" |
| | | android:inputType="none"/> |
| | | </LinearLayout> |
| | | android:layout_weight="1" |
| | | android:orientation="horizontal" |
| | | android:gravity="center"> |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="层数" |
| | | android:textSize="14sp" |
| | | android:textColor="#666666"/> |
| | | <TextView |
| | | android:id="@+id/tv_layer_status" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:textSize="10sp" |
| | | android:layout_marginStart="4dp"/> |
| | | </LinearLayout> |
| | | |
| | | <!-- Station Input --> |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:orientation="vertical" |
| | | android:layout_marginBottom="16dp"> |
| | | |
| | | <!-- Station Label --> |
| | | <LinearLayout |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_weight="1" |
| | | android:orientation="horizontal" |
| | | android:gravity="center"> |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="站号" |
| | | android:textSize="14sp" |
| | | android:textColor="#666666"/> |
| | | <TextView |
| | | android:id="@+id/tv_station_status" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:textSize="10sp" |
| | | android:layout_marginStart="4dp"/> |
| | | </LinearLayout> |
| | | |
| | | <!-- Baud Label --> |
| | | <LinearLayout |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_weight="1.5" |
| | | android:orientation="horizontal" |
| | | android:gravity="center"> |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="波特率" |
| | | android:textSize="14sp" |
| | | android:textColor="#666666"/> |
| | | <TextView |
| | | android:id="@+id/tv_baud_status" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:textSize="10sp" |
| | | android:layout_marginStart="4dp"/> |
| | | </LinearLayout> |
| | | </LinearLayout> |
| | | |
| | | <!-- Row 2: Values --> |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:orientation="horizontal" |
| | | android:gravity="center_vertical" |
| | | android:layout_marginBottom="8dp"> |
| | | android:gravity="center_vertical"> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="站号" |
| | | android:textSize="14sp" |
| | | android:textColor="#666666"/> |
| | | <!-- Layer Value --> |
| | | <TextView |
| | | android:id="@+id/et_layer" |
| | | android:layout_width="0dp" |
| | | android:layout_height="48dp" |
| | | android:layout_weight="1" |
| | | android:background="@android:color/transparent" |
| | | android:gravity="center" |
| | | android:text="待读取" |
| | | android:textSize="16sp" |
| | | android:textStyle="bold" |
| | | android:textColor="#999999" |
| | | android:layout_marginEnd="4dp" |
| | | /> |
| | | |
| | | <TextView |
| | | android:id="@+id/tv_station_status" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:textSize="10sp" |
| | | android:layout_marginStart="8dp"/> |
| | | </LinearLayout> |
| | | |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:orientation="horizontal"> |
| | | |
| | | <!-- Station Value --> |
| | | <EditText |
| | | android:id="@+id/et_station" |
| | | android:layout_width="0dp" |
| | | android:layout_height="48dp" |
| | | android:layout_weight="1" |
| | | android:background="@drawable/bg_input_field" |
| | | android:paddingStart="16dp" |
| | | android:paddingEnd="16dp" |
| | | android:hint="请输入站号 (1-64)" |
| | | android:gravity="center" |
| | | android:hint="站号" |
| | | android:textColorHint="#CCCCCC" |
| | | android:textSize="14sp" |
| | | android:inputType="number"/> |
| | | |
| | | </LinearLayout> |
| | | </LinearLayout> |
| | | android:inputType="number" |
| | | android:layout_marginStart="4dp" |
| | | android:layout_marginEnd="4dp"/> |
| | | |
| | | <!-- Baud Rate --> |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:orientation="vertical"> |
| | | |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:orientation="horizontal" |
| | | android:gravity="center_vertical" |
| | | android:layout_marginBottom="8dp"> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="波特率" |
| | | android:textSize="14sp" |
| | | android:textColor="#666666"/> |
| | | |
| | | <TextView |
| | | android:id="@+id/tv_baud_status" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:textSize="10sp" |
| | | android:layout_marginStart="8dp"/> |
| | | </LinearLayout> |
| | | |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:orientation="horizontal"> |
| | | |
| | | <!-- Baud Value --> |
| | | <FrameLayout |
| | | android:layout_width="0dp" |
| | | android:layout_height="48dp" |
| | | android:layout_weight="1" |
| | | android:background="@drawable/bg_input_field"> |
| | | android:layout_weight="1.5" |
| | | android:background="@drawable/bg_input_field" |
| | | android:layout_marginStart="4dp"> |
| | | |
| | | <Spinner |
| | | android:id="@+id/spinner_baud" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | android:background="@null" |
| | | android:paddingStart="8dp"/> |
| | | android:paddingEnd="32dp" |
| | | /> |
| | | |
| | | <ImageView |
| | | android:layout_width="24dp" |
| | | android:layout_height="24dp" |
| | | android:src="@drawable/ic_arrow_drop_down" |
| | | android:layout_gravity="center_vertical|end" |
| | | android:layout_marginEnd="8dp" |
| | | android:importantForAccessibility="no"/> |
| | | </FrameLayout> |
| | | </LinearLayout> |
| | | </LinearLayout> |
| | |
| | | android:textColor="@color/white" |
| | | android:textSize="16sp" |
| | | android:textStyle="bold" |
| | | app:qmui_backgroundColor="@color/base_color_s" |
| | | app:qmui_backgroundColor="@color/base_color" |
| | | app:qmui_radius="8dp"/> |
| | | </LinearLayout> |
| | | |
| | |
| | | |
| | | <!-- Log Display --> |
| | | <androidx.cardview.widget.CardView |
| | | android:id="@+id/cv_log" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | app:cardCornerRadius="12dp" |