feat(shelf): 添加净菜毛菜搜索和分类选择功能
- 新增 tvFoodType TextView 显示食品分类 - 将搜索框可见性从 gone 改为 visible - 添加 FoodItem 和 FoodType 数据模型 - 添加 SearchFoodRequest 请求模型 - 在 ApiServiceV3 中新增 searchFood 接口 - 在 NetViewModelV3 中新增 searchFood 方法 - 修改 PutSlotRequest 模型字段为可空类型并添加 vegTypeId - 更新 HomeV3Activity 中行列计算逻辑 - 缩短商品数据同步间隔时间 - 修改 InitActivity 中的基础URL配置 - 将 PendingInboundAdapter 适配器改为使用 FoodItem 类型 - 在 ShelfV3Activity 中实现净菜分类选择对话框功能 - 添加 ChipSelectDialog 自定义对话框组件 - 添加 chip 相关的颜色资源文件 - 实现搜索功能替换原有的待入库查询逻辑
This commit is contained in:
@@ -74,6 +74,16 @@
|
||||
android:textStyle="bold"
|
||||
tools:text="金针菇" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvFoodType"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/food_name_black"
|
||||
android:textSize="22sp"
|
||||
tools:text="金针菇" />
|
||||
|
||||
<Space
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
@@ -139,7 +149,7 @@
|
||||
android:background="@drawable/shape_search"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone">
|
||||
android:visibility="visible">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="32dp"
|
||||
|
||||
Reference in New Issue
Block a user