|
@@ -1,14 +1,16 @@
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
-<layout xmlns:android="http://schemas.android.com/apk/res/android" >
|
|
|
|
|
|
+<layout xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
+ xmlns:android="http://schemas.android.com/apk/res/android" >
|
|
|
|
|
|
<data >
|
|
<data >
|
|
-
|
|
|
|
|
|
+ <variable
|
|
|
|
+ name="vm"
|
|
|
|
+ type="com.quansu.heifengwuliu.vmodel.AddressAddVModel" />
|
|
</data >
|
|
</data >
|
|
|
|
|
|
<LinearLayout
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:orientation="vertical"
|
|
android:orientation="vertical"
|
|
- xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:layout_height="match_parent">
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
<LinearLayout
|
|
<LinearLayout
|
|
@@ -44,21 +46,15 @@
|
|
android:textSize="16sp"></TextView>
|
|
android:textSize="16sp"></TextView>
|
|
|
|
|
|
|
|
|
|
- <EditText
|
|
|
|
|
|
+ <com.ysnows.base.widget.DelEditText
|
|
android:id="@+id/et_name"
|
|
android:id="@+id/et_name"
|
|
- android:layout_width="0dp"
|
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
android:layout_height="36dp"
|
|
android:layout_height="36dp"
|
|
android:layout_marginStart="21dp"
|
|
android:layout_marginStart="21dp"
|
|
- android:layout_weight="1"
|
|
|
|
- android:background="@drawable/bg_order_scnner"
|
|
|
|
- android:gravity="center_vertical"
|
|
|
|
- android:hint="请输入"
|
|
|
|
- android:paddingStart="11dp"
|
|
|
|
- android:textColor="#2F2F31"
|
|
|
|
- android:textColorHint="#929390"
|
|
|
|
- android:textSize="14sp">
|
|
|
|
-
|
|
|
|
- </EditText>
|
|
|
|
|
|
+ android:background="@null"
|
|
|
|
+ android:hint="@string/please_input_user_name"
|
|
|
|
+ android:text="@={vm.name}"
|
|
|
|
+ android:textSize="@dimen/sp_15" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
@@ -93,22 +89,18 @@
|
|
android:textColor="#FB6D4C"
|
|
android:textColor="#FB6D4C"
|
|
android:textSize="16sp"></TextView>
|
|
android:textSize="16sp"></TextView>
|
|
|
|
|
|
- <EditText
|
|
|
|
|
|
+
|
|
|
|
+ <com.ysnows.base.widget.DelEditText
|
|
android:id="@+id/et_tel"
|
|
android:id="@+id/et_tel"
|
|
- android:layout_width="0dp"
|
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
android:layout_height="36dp"
|
|
android:layout_height="36dp"
|
|
android:layout_marginStart="21dp"
|
|
android:layout_marginStart="21dp"
|
|
- android:layout_weight="1"
|
|
|
|
- android:background="@drawable/bg_order_scnner"
|
|
|
|
- android:gravity="center_vertical"
|
|
|
|
- android:hint="请输入"
|
|
|
|
- android:inputType="phone"
|
|
|
|
- android:paddingStart="11dp"
|
|
|
|
- android:textColor="#2F2F31"
|
|
|
|
- android:textColorHint="#929390"
|
|
|
|
- android:textSize="14sp">
|
|
|
|
|
|
+ android:background="@null"
|
|
|
|
+ android:hint="@string/please_input_user_phone"
|
|
|
|
+ android:text="@={vm.phone}"
|
|
|
|
+ android:textSize="@dimen/sp_15" />
|
|
|
|
+
|
|
|
|
|
|
- </EditText>
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
@@ -126,6 +118,7 @@
|
|
android:id="@+id/ll_position"
|
|
android:id="@+id/ll_position"
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="45dp"
|
|
android:layout_height="45dp"
|
|
|
|
+ android:onClick="@{v->vm.choseCity()}"
|
|
android:gravity="center_vertical"
|
|
android:gravity="center_vertical"
|
|
>
|
|
>
|
|
|
|
|
|
@@ -149,6 +142,7 @@
|
|
android:ellipsize="middle"
|
|
android:ellipsize="middle"
|
|
android:gravity="right"
|
|
android:gravity="right"
|
|
android:hint="请选择位置"
|
|
android:hint="请选择位置"
|
|
|
|
+ android:text="@{vm.cityname}"
|
|
android:singleLine="true"
|
|
android:singleLine="true"
|
|
android:textColor="#2F2F31"
|
|
android:textColor="#2F2F31"
|
|
android:textColorHint="#929390"
|
|
android:textColorHint="#929390"
|
|
@@ -201,6 +195,7 @@
|
|
android:id="@+id/ll_chose_map"
|
|
android:id="@+id/ll_chose_map"
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
|
+ android:onClick="@{v->vm.choseMap()}"
|
|
android:gravity="center_vertical">
|
|
android:gravity="center_vertical">
|
|
|
|
|
|
<TextView
|
|
<TextView
|
|
@@ -223,8 +218,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
- <EditText
|
|
|
|
|
|
+ <com.ysnows.base.widget.DelEditText
|
|
android:id="@+id/et_details_address"
|
|
android:id="@+id/et_details_address"
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
@@ -232,12 +226,13 @@
|
|
android:background="@drawable/bg_order_scnner"
|
|
android:background="@drawable/bg_order_scnner"
|
|
android:gravity="center_vertical"
|
|
android:gravity="center_vertical"
|
|
android:hint="街道门牌信息"
|
|
android:hint="街道门牌信息"
|
|
|
|
+ android:text="@{vm.address}"
|
|
android:paddingStart="11dp"
|
|
android:paddingStart="11dp"
|
|
android:textColor="#2F2F31"
|
|
android:textColor="#2F2F31"
|
|
android:textColorHint="#929390"
|
|
android:textColorHint="#929390"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginTop="10dp"
|
|
- android:textSize="14sp">
|
|
|
|
- </EditText>
|
|
|
|
|
|
+ android:textSize="@dimen/sp_15" />
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -269,9 +264,10 @@
|
|
<ImageView
|
|
<ImageView
|
|
android:id="@+id/img_default"
|
|
android:id="@+id/img_default"
|
|
android:layout_width="40dp"
|
|
android:layout_width="40dp"
|
|
- android:layout_height="28dp"
|
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
android:layout_marginLeft="18dp"
|
|
android:layout_marginLeft="18dp"
|
|
- android:src="@drawable/ic_default_on">
|
|
|
|
|
|
+ android:onClick="@{v->vm.choseDefault()}"
|
|
|
|
+ android:src="@{vm.checked==1?@drawable/ic_default_on:@drawable/ic_default_off,default=@drawable/ic_default_on}">
|
|
|
|
|
|
</ImageView>
|
|
</ImageView>
|
|
|
|
|
|
@@ -286,6 +282,7 @@
|
|
android:layout_marginBottom="20dp"
|
|
android:layout_marginBottom="20dp"
|
|
android:layout_marginTop="@dimen/dp_40"
|
|
android:layout_marginTop="@dimen/dp_40"
|
|
android:layout_marginEnd="10dp"
|
|
android:layout_marginEnd="10dp"
|
|
|
|
+ android:onClick="@{v->vm.setSave()}"
|
|
android:orientation="horizontal"
|
|
android:orientation="horizontal"
|
|
android:gravity="center"
|
|
android:gravity="center"
|
|
app:qmui_backgroundColor="#5D76F4"
|
|
app:qmui_backgroundColor="#5D76F4"
|