Files
aerologic-app/module_gjc/src/main/res/layout/item_assemble_info.xml
2025-11-27 17:17:17 +08:00

60 lines
2.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android">
<data>
<import type="android.view.View" />
<import type="com.lukouguoji.module_base.ui.weight.data.layout.DataLayoutType" />
<variable
name="bean"
type="com.lukouguoji.module_base.bean.AssembleInfoBean" />
<variable
name="position"
type="Integer" />
</data>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical"
android:paddingVertical="8dp">
<!-- 编号圆圈 -->
<TextView
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginEnd="8dp"
android:background="@drawable/bg_circle_yellow"
android:gravity="center"
android:text="@{String.valueOf(position + 1)}"
android:textColor="@color/white"
android:textSize="16sp"
android:textStyle="bold" />
<!-- 运单号 -->
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginEnd="8dp"
enable="@{false}"
required="@{false}"
title='@{"运单号:"}'
titleLength="@{5}"
type="@{DataLayoutType.INPUT}"
value="@={bean.waybillNo}" />
<!-- 件数 -->
<com.lukouguoji.module_base.ui.weight.data.layout.PadDataLayoutNew
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.6"
enable="@{false}"
required="@{false}"
title='@{"件数:"}'
titleLength="@{3}"
type="@{DataLayoutType.INPUT}"
value="@={bean.pieces}" />
</LinearLayout>
</layout>