- 主内容区 padding 由 10dp 改为上下 20dp / 左右 10dp - 含展开按钮的列表项 iv_show 由 10dp/centerInside 改为 20dp + paddingVertical=2.5dp + marginTop=-20dp + center - 覆盖 module_gjc 14 个 + module_gjj 14 个列表项布局 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
310 lines
15 KiB
XML
310 lines
15 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<data>
|
|
|
|
<variable
|
|
name="bean"
|
|
type="com.lukouguoji.module_base.bean.GjjManifestBean" />
|
|
|
|
</data>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<com.mcxtzhang.swipemenulib.SwipeMenuLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="15dp"
|
|
android:layout_marginVertical="6dp"
|
|
android:background="@drawable/bg_item"
|
|
android:gravity="center_vertical"
|
|
android:orientation="vertical"
|
|
android:paddingVertical="20dp"
|
|
android:paddingHorizontal="10dp">
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_icon"
|
|
loadImage="@{bean.checked ? @drawable/img_plane_s : @drawable/img_plane}"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_marginTop="0.5px"
|
|
android:layout_gravity="center"
|
|
android:src="@drawable/img_plane" />
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical">
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1.5">
|
|
|
|
<TextView
|
|
android:layout_width="80dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="运单号:"
|
|
android:textSize="15sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@{bean.waybillCode}"
|
|
android:textColor="@color/colorPrimary"
|
|
android:textSize="15sp"
|
|
android:textStyle="bold" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1">
|
|
|
|
<TextView
|
|
android:layout_width="80dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="始发站:"
|
|
android:textSize="15sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@{bean.origin}"
|
|
android:textSize="15sp" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1">
|
|
|
|
<TextView
|
|
android:layout_width="80dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="目的港:"
|
|
android:textSize="15sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@{bean.dest}"
|
|
android:textSize="15sp" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1">
|
|
|
|
<TextView
|
|
android:layout_width="80dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="代理:"
|
|
android:textSize="15sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@{bean.agent}"
|
|
android:textSize="15sp" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1">
|
|
|
|
<TextView
|
|
android:layout_width="80dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="运单件数:"
|
|
android:textSize="15sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text='@{bean.awbpc + ""}'
|
|
android:textSize="15sp" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:gravity="center_vertical">
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1.5">
|
|
|
|
<TextView
|
|
android:layout_width="80dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="实到件数:"
|
|
android:textSize="15sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text='@{bean.pc + ""}'
|
|
android:textSize="15sp" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1">
|
|
|
|
<TextView
|
|
android:layout_width="80dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="实到重量:"
|
|
android:textSize="15sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text='@{bean.weight + ""}'
|
|
android:textSize="15sp" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1">
|
|
|
|
<TextView
|
|
android:layout_width="80dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="特码:"
|
|
android:textSize="15sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@{bean.spCode}"
|
|
android:textSize="15sp" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1">
|
|
|
|
<TextView
|
|
android:layout_width="80dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="业务类型:"
|
|
android:textSize="15sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@{bean.businessType}"
|
|
android:textSize="15sp" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1">
|
|
|
|
<TextView
|
|
android:layout_width="80dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="品名:"
|
|
android:textSize="15sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@{bean.goods}"
|
|
android:textSize="15sp" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_show"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="20dp"
|
|
android:paddingVertical="2.5dp"
|
|
android:layout_marginTop="-20dp"
|
|
android:scaleType="center"
|
|
android:src="@mipmap/img_down" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
</FrameLayout>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_details"
|
|
style="@style/tv_item_action"
|
|
android:background="#facd91"
|
|
android:text="详情" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_delete"
|
|
style="@style/tv_item_action"
|
|
android:background="#df253c"
|
|
android:text="删除" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
</com.mcxtzhang.swipemenulib.SwipeMenuLayout>
|
|
|
|
<TextView
|
|
visible="@{bean.show}"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="15dp"
|
|
android:layout_marginVertical="6dp"
|
|
android:text="@{bean.remark}"
|
|
android:textColor="#333" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
</layout> |