Files
DishMatch/app/src/main/res/layout/activity_setting.xml
T
lvmeng b110cc97a0 refactor(collect): 重构食材采集功能界面和适配器
- 将按钮组件替换为TextView以支持更好的交互效果
- 添加selectableItemBackground实现点击反馈效果
- 重命名食材采样为食材采集保持术语一致性
- 替换FoodCollectionAdapter为VectorCollectionAdapter适配器
- 更新列表项布局从list_item_food_collection到list_item_vector_collection
- 添加FoodSearchAdapter适配器用于食材搜索功能
- 重构CollectFragment中的数据绑定和UI逻辑
- 修改相机容器布局位置优化界面结构
- 更新资源文件名和颜色定义提升代码可读性
- 调整保存按钮样式增强视觉效果
- 修改提示对话框内容精确表达功能意图
2026-04-27 10:21:37 +08:00

173 lines
6.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
tools:background="@color/bg_color"
android:orientation="vertical">
<LinearLayout
android:id="@+id/llCookMode"
android:layout_width="match_parent"
android:layout_height="120dp"
android:orientation="horizontal"
android:gravity="center_vertical"
android:layout_marginTop="10dp"
android:layout_marginHorizontal="32dp"
android:background="@drawable/shape_white_e6_12_corners"
android:foreground="?android:attr/selectableItemBackground"
android:clipToOutline="true">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="餐品模式"
android:textSize="32sp"
android:textStyle="bold"
android:layout_marginStart="32dp"
android:textColor="@color/black333" />
<TextView
android:id="@+id/tvCurrentMode"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="当前:制作模式"
android:textSize="26sp"
android:layout_marginStart="32dp"
android:textColor="@color/black999" />
<ImageView
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginEnd="20dp"
android:adjustViewBounds="true"
android:src="@drawable/ic_arrow_right2"
tools:ignore="ContentDescription" />
</LinearLayout>
<LinearLayout
android:id="@+id/llSeasoningConfig"
android:layout_width="match_parent"
android:layout_height="120dp"
android:orientation="horizontal"
android:gravity="center_vertical"
android:layout_marginHorizontal="32dp"
android:layout_marginTop="32dp"
android:background="@drawable/shape_white_e6_12_corners"
android:foreground="?android:attr/selectableItemBackground"
android:clipToOutline="true">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="调料区设置"
android:textSize="32sp"
android:textStyle="bold"
android:layout_marginStart="32dp"
android:textColor="@color/black333" />
<ImageView
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginEnd="20dp"
android:adjustViewBounds="true"
android:src="@drawable/ic_arrow_right2"
tools:ignore="ContentDescription" />
</LinearLayout>
<LinearLayout
android:id="@+id/llFoodCollect"
android:layout_width="match_parent"
android:layout_height="120dp"
android:orientation="horizontal"
android:gravity="center_vertical"
android:layout_marginHorizontal="32dp"
android:layout_marginTop="32dp"
android:background="@drawable/shape_white_e6_12_corners"
android:foreground="?android:attr/selectableItemBackground"
android:clipToOutline="true">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="食材采集"
android:textSize="32sp"
android:textStyle="bold"
android:layout_marginStart="32dp"
android:textColor="@color/black333" />
<ImageView
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginEnd="20dp"
android:adjustViewBounds="true"
android:src="@drawable/ic_arrow_right2"
tools:ignore="ContentDescription" />
</LinearLayout>
<!-- &lt;!&ndash; 底部导航菜单 &ndash;&gt;-->
<!-- <LinearLayout-->
<!-- android:id="@+id/bottomMenu"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:orientation="horizontal"-->
<!-- android:background="@android:color/transparent"-->
<!-- android:layout_marginTop="10dp"-->
<!-- android:layout_marginBottom="10dp"-->
<!-- android:layout_marginStart="15dp"-->
<!-- android:layout_marginEnd="15dp"-->
<!-- android:elevation="8dp">-->
<!-- <androidx.appcompat.widget.AppCompatButton-->
<!-- android:id="@+id/btnDeviceConfig"-->
<!-- android:layout_width="0dp"-->
<!-- android:layout_height="70dp"-->
<!-- android:layout_weight="1"-->
<!-- android:text="设备切换"-->
<!-- android:textSize="28sp"-->
<!-- android:textStyle="bold"-->
<!-- android:background="@android:color/transparent" />-->
<!-- <androidx.appcompat.widget.AppCompatButton-->
<!-- android:id="@+id/btnSeasoningConfig"-->
<!-- android:layout_width="0dp"-->
<!-- android:layout_height="70dp"-->
<!-- android:layout_weight="1"-->
<!-- android:text="调料配置"-->
<!-- android:textSize="26sp"-->
<!-- android:background="@android:color/transparent" />-->
<!-- <androidx.appcompat.widget.AppCompatButton-->
<!-- android:id="@+id/btnFoodCollect"-->
<!-- android:layout_width="0dp"-->
<!-- android:layout_height="70dp"-->
<!-- android:layout_weight="1"-->
<!-- android:text="采集食材"-->
<!-- android:textSize="26sp"-->
<!-- android:background="@android:color/transparent" />-->
<!-- <androidx.appcompat.widget.AppCompatButton-->
<!-- android:id="@+id/btnScaleMonitor"-->
<!-- android:layout_width="0dp"-->
<!-- android:layout_height="70dp"-->
<!-- android:layout_weight="1"-->
<!-- android:text="秤数据监控"-->
<!-- android:textSize="26sp"-->
<!-- android:visibility="visible"-->
<!-- android:background="@android:color/transparent" />-->
<!-- </LinearLayout>-->
<!-- &lt;!&ndash; Fragment 容器 &ndash;&gt;-->
<!-- <FrameLayout-->
<!-- android:id="@+id/fragmentContainer"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="0dp"-->
<!-- android:layout_weight="1" />-->
</LinearLayout>