style(ui): 优化界面布局和颜色配置
- 修改 RecyclerView 高度设置以改进布局 - 更新颜色值,移除 alpha 通道简化颜色定义 - 重构调味配置界面布局,提升视觉效果 - 调整项目条目样式,包括文字颜色和字体粗细 - 更新分割线为 Material Divider 组件 - 统一调整文本颜色和大小以增强可读性 - 优化调味网格适配器中的文字颜色显示 - 调整布局间距和尺寸参数以改善界面美观 - 优化重量数据显示,增加小数位数控制功能
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="60dp"
|
||||
android:layout_marginHorizontal="4dp"
|
||||
android:layout_marginVertical="4dp"
|
||||
android:background="@drawable/shape_scale_cell"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:background="@drawable/shape_scale_cell"
|
||||
android:paddingHorizontal="16dp"
|
||||
android:layout_marginHorizontal="4dp"
|
||||
android:layout_marginVertical="4dp">
|
||||
android:paddingHorizontal="16dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvSeasoningName"
|
||||
@@ -16,15 +17,19 @@
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/black666"
|
||||
android:textSize="24sp" />
|
||||
android:textColor="@color/black"
|
||||
android:textSize="24sp"
|
||||
android:textStyle="bold"
|
||||
tools:text="土豆丝" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvSeasoningWeight"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="20dp"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="24sp" />
|
||||
android:textColor="@color/dish_green"
|
||||
android:textSize="26sp"
|
||||
android:textStyle="bold"
|
||||
tools:text="100g" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
Reference in New Issue
Block a user