240 lines
9.2 KiB
XML
240 lines
9.2 KiB
XML
<?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:id="@+id/activity_address_add"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<include layout="@layout/assembly_title_block" />
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/dp_13"
|
|
android:background="@drawable/shape_w_bg8"
|
|
android:elevation="@dimen/dp_2"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="@dimen/dp_12"
|
|
android:paddingTop="@dimen/dp_16"
|
|
android:paddingRight="@dimen/dp_12">
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/dp_6"
|
|
android:text="联系人"
|
|
android:textColor="@color/gray"
|
|
android:textSize="@dimen/dp_14"></TextView>
|
|
|
|
<EditText
|
|
android:id="@+id/etName"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginLeft="@dimen/dp_38"
|
|
android:background="@null"
|
|
android:gravity="right"
|
|
android:hint="联系人"
|
|
android:maxLength="6"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:textSize="@dimen/dp_14" />
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_16"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/dp_6"
|
|
android:text="联系电话"
|
|
android:textColor="@color/gray"
|
|
android:textSize="@dimen/dp_14"></TextView>
|
|
|
|
<EditText
|
|
android:id="@+id/etPhone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginLeft="@dimen/dp_38"
|
|
android:background="@null"
|
|
android:gravity="right"
|
|
android:hint="请输入联系电话"
|
|
android:inputType="phone"
|
|
android:maxLength="11"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:textSize="@dimen/dp_18" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_16"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/tvName2Title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/dp_6"
|
|
android:text="托运人"
|
|
android:textColor="@color/gray"
|
|
android:textSize="@dimen/dp_14"></TextView>
|
|
|
|
<EditText
|
|
android:id="@+id/etName2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginLeft="@dimen/dp_38"
|
|
android:background="@null"
|
|
android:gravity="right"
|
|
android:hint="公司名称/个人名称"
|
|
android:maxLines="1"
|
|
android:textColor="@color/black"
|
|
android:singleLine="true"
|
|
android:textSize="@dimen/dp_14" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_16"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/dp_6"
|
|
android:text="税号/身份证号"
|
|
android:textColor="@color/gray"
|
|
android:textSize="@dimen/dp_14"></TextView>
|
|
|
|
<EditText
|
|
android:id="@+id/tvNum"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginLeft="@dimen/dp_38"
|
|
android:background="@null"
|
|
android:gravity="right"
|
|
android:hint="请输入税号/身份证号"
|
|
android:maxLines="1"
|
|
android:textColor="@color/black"
|
|
android:singleLine="true"
|
|
android:textSize="@dimen/dp_14" />
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp_1"
|
|
android:layout_marginTop="@dimen/dp_16"
|
|
android:background="@color/def_text" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_16"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/dp_6"
|
|
android:text="所在地区"
|
|
android:textColor="@color/gray"
|
|
android:textSize="@dimen/dp_14"></TextView>
|
|
|
|
<TextView
|
|
android:id="@+id/tvAddress"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginLeft="@dimen/dp_38"
|
|
android:background="@null"
|
|
android:digits="0123456789."
|
|
android:gravity="right"
|
|
android:hint="请选择地区"
|
|
android:inputType="phone"
|
|
android:maxLines="1"
|
|
android:textColor="@color/black"
|
|
android:singleLine="true"
|
|
android:textSize="@dimen/dp_14" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_16"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/dp_6"
|
|
android:text="详细地址"
|
|
android:textColor="@color/gray"
|
|
android:textSize="@dimen/dp_14"></TextView>
|
|
|
|
<EditText
|
|
android:id="@+id/etAddressDetail"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginLeft="@dimen/dp_38"
|
|
android:layout_weight="1"
|
|
android:background="@null"
|
|
android:gravity="right"
|
|
android:hint="请输入详细地址"
|
|
android:textSize="@dimen/dp_14" />
|
|
|
|
<ImageView
|
|
android:visibility="gone"
|
|
android:id="@+id/ivAddress"
|
|
android:layout_width="@dimen/dp_22"
|
|
android:layout_height="@dimen/dp_22"
|
|
android:layout_marginLeft="@dimen/dp_4"
|
|
></ImageView>
|
|
</LinearLayout>
|
|
|
|
<com.oneclouds.cargo.util.view.BaseRecyclerView
|
|
android:id="@+id/ryPretend"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
android:layout_marginBottom="@dimen/dp_10"></com.oneclouds.cargo.util.view.BaseRecyclerView>
|
|
</LinearLayout>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recyclerView"
|
|
android:overScrollMode="never"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/dp_13"
|
|
android:layout_marginRight="@dimen/dp_13"
|
|
android:layout_weight="1"></androidx.recyclerview.widget.RecyclerView>
|
|
|
|
<Button
|
|
android:id="@+id/btnOk"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/dp_20"
|
|
android:background="@drawable/bg_btn"
|
|
android:text="确认保存"
|
|
android:textColor="@color/white"></Button>
|
|
</LinearLayout> |