refactor(ui): 更新布局样式和清理无用代码

- 将活动主秤页面背景从颜色改为 drawable 背景
- 调整主秤页面标题的内边距、文字颜色和去除外边距
- 修改返回按钮尺寸并调整内边距为水平方向
- 更新设置页面三个组件的背景 drawable 样式
- 删除 ApiService 中大量注释掉的无用 API 接口代码
- 移除 CommonDialog 中不必要的导入和完整包名引用
- 清理 DataBean 中多个无用的数据类定义
- 新增白色带灰色边框圆角背景 drawable 资源
This commit is contained in:
2026-05-06 11:13:42 +08:00
parent af737b910c
commit 05063ee9de
6 changed files with 19 additions and 109 deletions
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/white"/>
<corners android:radius="15dp"/>
<stroke android:color="#DCDCDC" android:width="1dp"/>
</shape>
@@ -4,7 +4,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:background="@color/bg_color">
tools:background="@drawable/bg_other_page">
<!-- 顶部标题 -->
<TextView
@@ -12,13 +12,12 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:paddingVertical="5dp"
android:text="全设备秤数据监控"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:textColor="@color/home_title"
android:textColor="@color/white"
android:textSize="36sp"
android:textStyle="bold" />
@@ -30,18 +29,16 @@
app:layout_constraintTop_toBottomOf="@id/tvMasterTitle"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginBottom="16dp"
android:textColor="@color/home_sub_title"
android:textColor="@color/white"
android:textSize="24sp"
tools:text="已发现设备:3 台" />
<ImageView
android:id="@+id/ivMasterBack"
android:layout_width="70dp"
android:layout_height="60dp"
android:layout_width="90dp"
android:layout_height="0dp"
android:layout_gravity="start"
android:paddingStart="30dp"
android:paddingEnd="10dp"
android:paddingHorizontal="30dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/tvMasterTitle"
app:layout_constraintBottom_toBottomOf="@id/tvMasterTitle"
+3 -3
View File
@@ -15,7 +15,7 @@
android:gravity="center_vertical"
android:layout_marginTop="30dp"
android:layout_marginHorizontal="32dp"
android:background="@drawable/shape_white_fb_15_corners2"
android:background="@drawable/shape_white_dc_15_corners"
android:foreground="?android:attr/selectableItemBackground"
android:clipToOutline="true">
@@ -55,7 +55,7 @@
android:gravity="center_vertical"
android:layout_marginHorizontal="32dp"
android:layout_marginTop="50dp"
android:background="@drawable/shape_white_fb_15_corners2"
android:background="@drawable/shape_white_dc_15_corners"
android:foreground="?android:attr/selectableItemBackground"
android:clipToOutline="true">
@@ -86,7 +86,7 @@
android:gravity="center_vertical"
android:layout_marginHorizontal="32dp"
android:layout_marginTop="50dp"
android:background="@drawable/shape_white_fb_15_corners2"
android:background="@drawable/shape_white_dc_15_corners"
android:foreground="?android:attr/selectableItemBackground"
android:clipToOutline="true">