You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SZXBGJ/app/src/main/res/layout/activity_up.xml

322 lines
14 KiB
XML

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#F5F7FA"
android:padding="8dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<!-- 页面标题 -->
<TextView
android:layout_width="match_parent"
android:layout_height="56dp"
android:background="#FFFFFF"
android:elevation="4dp"
android:gravity="center"
android:layout_marginBottom="16dp"
android:padding="8dp"
android:text="轮胎装车管理"
android:textColor="#333333"
android:textSize="20sp"
android:textStyle="bold" />
<!-- 主表单卡片 -->
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardCornerRadius="12dp"
app:cardElevation="8dp"
android:layout_marginBottom="16dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<!-- 第一行EPC芯片 (独立一行) -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginBottom="12dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="EPC芯片"
android:textColor="#666666"
android:textSize="12sp"
android:layout_marginStart="4dp"/>
<!-- 使用TextView显示EPC背景使用圆角 -->
<TextView
android:id="@+id/epc"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="4dp"
android:background="@drawable/rounded_input_bg"
android:gravity="center_vertical"
android:paddingStart="12dp"
android:text="请扫描EPC"
android:textColor="#555"
android:textSize="16sp" />
</LinearLayout>
<!-- 第二行:胎号 + 自编号 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom="12dp">
<!-- 胎号 -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:layout_marginEnd="8dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="胎号"
android:textColor="#666666"
android:textSize="12sp"
android:layout_marginStart="4dp"/>
<EditText
android:id="@+id/th"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="4dp"
android:background="@drawable/rounded_input_bg"
android:gravity="center_vertical"
android:paddingStart="12dp"
android:text="未读取"
android:textColor="#555"
android:textSize="16sp" />
</LinearLayout>
<!-- 自编号 -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="自编号"
android:textColor="#666666"
android:textSize="12sp"
android:layout_marginStart="4dp"/>
<EditText
android:id="@+id/zbh"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="4dp"
android:background="@drawable/rounded_input_bg"
android:gravity="center_vertical"
android:paddingStart="12dp"
android:textColor="#555"
android:textSize="16sp"
android:hint="请输入自编号" />
</LinearLayout>
</LinearLayout>
<!-- 第三行:车牌号 (带搜索图标) -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom="12dp">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:layout_marginEnd="8dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="车牌号"
android:textColor="#666666"
android:textSize="12sp"
android:layout_marginStart="4dp"/>
<EditText
android:id="@+id/car"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="4dp"
android:background="@drawable/rounded_input_bg"
android:gravity="center_vertical"
android:paddingStart="12dp"
android:textColor="#555"
android:textSize="16sp"
android:hint="请输入或扫描" />
</LinearLayout>
<!-- 搜索按钮 -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.4"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="操作"
android:textColor="#666666"
android:textSize="12sp"
android:layout_marginStart="4dp"/>
<Button
android:id="@+id/searchButton"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="4dp"
android:backgroundTint="#007AFF"
android:text="🔍 搜索"
android:textColor="#FFFFFF" />
</LinearLayout>
</LinearLayout>
<!-- 第四行:起始里程 + 安装轮位 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom="12dp">
<!-- 起始里程 -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:layout_marginEnd="8dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="起始里程"
android:textColor="#666666"
android:textSize="12sp"
android:layout_marginStart="4dp"/>
<EditText
android:id="@+id/start"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="4dp"
android:background="@drawable/rounded_input_bg"
android:gravity="center_vertical"
android:paddingStart="12dp"
android:textColor="#555"
android:textSize="16sp"
android:hint="0"
android:inputType="number" />
</LinearLayout>
<!-- 安装轮位 -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="安装轮位"
android:textColor="#666666"
android:textSize="12sp"
android:layout_marginStart="4dp"/>
<Spinner
android:id="@+id/condition"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="4dp"
android:background="@drawable/rounded_input_bg"
android:paddingStart="12dp"
android:spinnerMode="dropdown" />
</LinearLayout>
</LinearLayout>
<!-- 花纹深度(独立一行) -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginBottom="12dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="花纹深度"
android:textColor="#666666"
android:textSize="12sp"
android:layout_marginStart="4dp" />
<EditText
android:id="@+id/patternDepth"
style="@style/infotext"
android:layout_width="match_parent"
android:layout_height="48dp"
android:background="@drawable/rounded_input_bg"
android:paddingStart="12dp"
android:textSize="16sp"
android:inputType="numberDecimal"
android:hint="请输入花纹深度" />
</LinearLayout>
</LinearLayout>
</androidx.cardview.widget.CardView>
<!-- 底部操作按钮 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="24dp">
<Button
android:id="@+id/confirmButton"
android:layout_width="0dp"
android:layout_height="60dp"
android:layout_weight="1"
android:layout_marginEnd="8dp"
android:backgroundTint="#333333"
android:text="确 认 装 车"
android:textColor="#FFFFFF"
android:textSize="18sp"
android:elevation="4dp" />
<Button
android:id="@+id/back"
android:layout_width="0dp"
android:layout_height="60dp"
android:layout_weight="1"
android:layout_marginStart="8dp"
android:backgroundTint="#333333"
android:text="取 消"
android:textColor="#FFFFFF"
android:textSize="18sp"
android:elevation="4dp" />
</LinearLayout>
</LinearLayout>
</ScrollView>