feat(seasoning): 添加调料配置网格适配器功能
- 创建调料配置格子布局文件,仅显示调料名称 - 实现调料配置下层18格网格适配器,使用GridLayoutManager排列 - 实现调料配置上层22格网格适配器,使用FlexboxLayoutManager排列 - 添加不同行列的边距控制和字体大小自适应 - 实现按预设顺序更新数据的功能,空位用哨兵填充 - 预留点击回调接口,暂不处理点击事件
This commit is contained in:
@@ -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" />
|
||||
Reference in New Issue
Block a user