147 lines
5.7 KiB
XML
147 lines
5.7 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:orientation="vertical"
|
||
|
|
android:background="#FFFFFF">
|
||
|
|
|
||
|
|
<!-- 全屏图表容器 - 直接占满整个屏幕 -->
|
||
|
|
<FrameLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:background="#FFFFFF">
|
||
|
|
|
||
|
|
<!-- 生命体征显示区域 - 浮动在左上角 -->
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="top|start"
|
||
|
|
android:layout_margin="16dp"
|
||
|
|
android:orientation="vertical"
|
||
|
|
android:background="#80000000"
|
||
|
|
android:padding="12dp"
|
||
|
|
android:elevation="4dp">
|
||
|
|
|
||
|
|
<!-- 心率显示 -->
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:layout_marginBottom="4dp">
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/heart_rate_label"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="心率 (bpm)"
|
||
|
|
android:textColor="#FFFFFF"
|
||
|
|
android:textSize="12sp"
|
||
|
|
android:layout_marginEnd="8dp" />
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/heart_rate_value"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="--"
|
||
|
|
android:textColor="#00FF00"
|
||
|
|
android:textSize="14sp"
|
||
|
|
android:textStyle="bold" />
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<!-- 血氧显示 -->
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:layout_marginBottom="4dp">
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/spo2_label"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="血氧 (%)"
|
||
|
|
android:textColor="#FFFFFF"
|
||
|
|
android:textSize="12sp"
|
||
|
|
android:layout_marginEnd="8dp" />
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/spo2_value"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="--"
|
||
|
|
android:textColor="#0080FF"
|
||
|
|
android:textSize="14sp"
|
||
|
|
android:textStyle="bold" />
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<!-- 体温显示 -->
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/temperature_label"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="体温 (°C)"
|
||
|
|
android:textColor="#FFFFFF"
|
||
|
|
android:textSize="12sp"
|
||
|
|
android:layout_marginEnd="8dp" />
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/temperature_value"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="--"
|
||
|
|
android:textColor="#FF4040"
|
||
|
|
android:textSize="14sp"
|
||
|
|
android:textStyle="bold" />
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<!-- 滤波器按键 - 浮动在右上角 -->
|
||
|
|
<Button
|
||
|
|
android:id="@+id/filter_button"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="滤波器"
|
||
|
|
android:textSize="12sp"
|
||
|
|
android:background="@drawable/button_background"
|
||
|
|
android:textColor="#FFFFFF"
|
||
|
|
android:padding="8dp"
|
||
|
|
android:layout_gravity="top|end"
|
||
|
|
android:layout_margin="16dp" />
|
||
|
|
|
||
|
|
<!-- 退出全屏按钮 - 浮动在右上角,位于滤波器按键下方 -->
|
||
|
|
<Button
|
||
|
|
android:id="@+id/exit_fullscreen_button"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="退出全屏"
|
||
|
|
android:textSize="12sp"
|
||
|
|
android:background="@drawable/button_background"
|
||
|
|
android:textColor="#FFFFFF"
|
||
|
|
android:padding="8dp"
|
||
|
|
android:layout_gravity="top|end"
|
||
|
|
android:layout_marginTop="60dp"
|
||
|
|
android:layout_marginEnd="16dp" />
|
||
|
|
|
||
|
|
<!-- 可滚动的全屏图表容器 -->
|
||
|
|
<ScrollView
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:fillViewport="true">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/fullscreen_charts_container"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:orientation="vertical"
|
||
|
|
android:padding="0dp">
|
||
|
|
|
||
|
|
<!-- 全屏图表将在这里动态添加 -->
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</ScrollView>
|
||
|
|
|
||
|
|
</FrameLayout>
|
||
|
|
|
||
|
|
</LinearLayout>
|