feat(seasoning): 添加调料配置网格适配器功能

- 创建调料配置格子布局文件,仅显示调料名称
- 实现调料配置下层18格网格适配器,使用GridLayoutManager排列
- 实现调料配置上层22格网格适配器,使用FlexboxLayoutManager排列
- 添加不同行列的边距控制和字体大小自适应
- 实现按预设顺序更新数据的功能,空位用哨兵填充
- 预留点击回调接口,暂不处理点击事件
This commit is contained in:
2026-04-17 14:23:57 +08:00
parent 77df4a4d82
commit c61b1c8ef7
3 changed files with 158 additions and 0 deletions
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- 调料配置格子:仅显示调料名称 -->
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/tvGoodsName"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:includeFontPadding="false"
android:padding="4dp"
android:background="@drawable/shape_scale_cell"
android:textColor="@color/home_title" />