- SeasoningWeightAdapter 改继承 BaseQuickAdapter - item_seasoning_weight 左右间距改为 32dp - isCooking=true 时从数据库查询 goodsList 并预填充调料历史数据 - refreshAdapterByName 叠加历史用量,修复新增用量覆盖历史数据问题 - 返回键拦截,弹窗提示保存数据 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
31 lines
1.0 KiB
XML
31 lines
1.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="60dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:background="@drawable/shape_scale_cell"
|
|
android:paddingHorizontal="16dp"
|
|
android:layout_marginHorizontal="4dp"
|
|
android:layout_marginVertical="4dp">
|
|
|
|
<TextView
|
|
android:id="@+id/tvSeasoningName"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:textColor="@color/black666"
|
|
android:textSize="24sp" />
|
|
|
|
<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" />
|
|
|
|
</LinearLayout>
|