From ea06ea014b70322d7bccf4f2b7b1501aa6073110 Mon Sep 17 00:00:00 2001 From: "3075067877@qq.com" <3075067877@qq.com> Date: Thu, 11 Sep 2025 10:47:38 +0800 Subject: [PATCH] fix ui --- .../drawable/primary_color_rounded_background.xml | 19 ++- .../res/drawable/rounded_button_background.xml | 19 ++- 按钮样式恢复说明.md | 135 +++++++++++++++++++++ 3 files changed, 163 insertions(+), 10 deletions(-) create mode 100644 按钮样式恢复说明.md diff --git a/app/src/main/res/drawable/primary_color_rounded_background.xml b/app/src/main/res/drawable/primary_color_rounded_background.xml index 6e47efe..7293faf 100644 --- a/app/src/main/res/drawable/primary_color_rounded_background.xml +++ b/app/src/main/res/drawable/primary_color_rounded_background.xml @@ -1,6 +1,15 @@ - - - - \ No newline at end of file + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/rounded_button_background.xml b/app/src/main/res/drawable/rounded_button_background.xml index da355f7..03b4031 100644 --- a/app/src/main/res/drawable/rounded_button_background.xml +++ b/app/src/main/res/drawable/rounded_button_background.xml @@ -1,6 +1,15 @@ - - - - \ No newline at end of file + + + + + + + + + + + + + + \ No newline at end of file diff --git a/按钮样式恢复说明.md b/按钮样式恢复说明.md new file mode 100644 index 0000000..6cf8b07 --- /dev/null +++ b/按钮样式恢复说明.md @@ -0,0 +1,135 @@ +# 按钮样式恢复说明 + +## 问题背景 +在实现网络状态指示器功能过程中,意外修改了界面上一些按钮的样式,导致按钮外观发生变化。 + +## 恢复内容 + +### 1. 受影响的按钮 +- **button_open_door** (开门按钮) +- **button_memory_info** (内存自检按钮) +- **btn_verification_code** (验证码开门按钮) +- **btn_scanner_door** (扫码器开门按钮) +- **tvBackHome** (OrderSelectionActivity中的返回按钮) + +### 2. 恢复的样式 + +#### 蓝色按钮 (primary_color_rounded_background) +- **使用按钮**: button_open_door, button_memory_info +- **正常状态**: #007AFF (iOS蓝色) +- **按压状态**: #0056CC (深蓝色) +- **圆角半径**: 8dp +- **应用位置**: OXFaceOnlineActivity底部的开门和内存自检按钮 + +#### 橙色按钮 (rounded_button_background) +- **使用按钮**: btn_verification_code, btn_scanner_door, tvBackHome +- **正常状态**: #FF6B35 (活力橙色) +- **按压状态**: #E55A2B (深橙色) +- **圆角半径**: 8dp +- **应用位置**: + - OXFaceOnlineActivity右侧区域的验证码和扫码器按钮 + - OrderSelectionActivity顶部的返回按钮 + +### 3. 样式特性 + +#### 按压效果 +所有按钮都添加了按压状态效果: +- 按下时颜色会变深 +- 提供良好的用户交互反馈 +- 符合Material Design规范 + +#### 统一设计 +- **圆角半径**: 统一为8dp,提供现代化外观 +- **颜色对比**: 确保在深色背景下有良好的可见性 +- **尺寸一致**: 保持原有的按钮尺寸和布局 + +### 4. 技术实现 + +#### Selector样式 (按压效果) +```xml + + + + + + + + + + + + + + +``` + +### 5. 布局文件引用 + +#### OXFaceOnlineActivity +```xml + +