style(ui): 调整食物识别页面布局间距和移除测试代码

- 调整 activity_food_recognize.xml 中多个组件的 margin 间距
- 移除 FoodRecognizeActivity.kt 中的测试数据相关注释代码
- 为 list_item_food2.xml 添加可点击背景效果
- 清理 PrepareFoodActivity.kt 中的无用导入和调整常量值
- 优化 PrepareFoodActivity.kt 中的条件判断换行格式
This commit is contained in:
2026-05-09 14:45:18 +08:00
parent d060305417
commit a9663a21f0
4 changed files with 20 additions and 24 deletions
@@ -32,7 +32,7 @@
android:id="@+id/flListContainer"
android:layout_width="match_parent"
android:layout_height="260dp"
android:layout_marginTop="12dp">
android:layout_marginTop="20dp">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rvRecognizeList"
@@ -85,7 +85,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_marginTop="20dp"
android:background="@drawable/shape_white_12_corners"
android:orientation="vertical">
@@ -119,7 +119,7 @@
android:id="@+id/btnChangeFood"
android:layout_width="match_parent"
android:layout_height="90dp"
android:layout_marginTop="30dp"
android:layout_marginTop="40dp"
android:layout_marginHorizontal="15dp"
android:background="@drawable/shape_green_bg"
android:foreground="?android:attr/selectableItemBackground"
@@ -134,7 +134,7 @@
android:id="@+id/btnCancel"
android:layout_width="match_parent"
android:layout_height="90dp"
android:layout_marginVertical="30dp"
android:layout_marginVertical="40dp"
android:layout_marginHorizontal="15dp"
android:background="@drawable/shape_white_12_corners"
android:foreground="?android:attr/selectableItemBackground"
@@ -17,6 +17,7 @@
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:gravity="center"
android:foreground="?android:attr/selectableItemBackground"
android:background="@drawable/shape_white_f6_10_corners"
android:textColor="@color/black"
android:textSize="32sp"