|
@@ -4,6 +4,7 @@
|
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
|
|
<data>
|
|
|
+
|
|
|
<import type="android.view.View" />
|
|
|
|
|
|
<variable
|
|
@@ -40,19 +41,20 @@
|
|
|
android:id="@+id/ll"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent"
|
|
|
+ android:orientation="vertical"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- android:orientation="vertical">
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv"
|
|
|
android:layout_width="wrap_content"
|
|
|
- android:visibility="gone"
|
|
|
- android:layout_height="wrap_content" />
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:visibility="gone" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
+
|
|
|
<ImageView
|
|
|
android:id="@+id/img_info"
|
|
|
android:layout_width="26dp"
|
|
@@ -68,20 +70,19 @@
|
|
|
|
|
|
<com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
|
|
|
android:layout_width="17dp"
|
|
|
- app:qmui_backgroundColor="@color/white"
|
|
|
- app:qmui_borderColor="@color/white"
|
|
|
- app:qmui_radius="50dp"
|
|
|
- tools:text="2"
|
|
|
- android:textSize="11sp"
|
|
|
- android:text="@{String.valueOf(vm.user.msg_num)}"
|
|
|
- android:layout_marginEnd="14dp"
|
|
|
+ android:layout_height="17dp"
|
|
|
android:layout_marginTop="9dp"
|
|
|
+ android:layout_marginEnd="14dp"
|
|
|
+ android:text="@{String.valueOf(vm.user.msg_num)}"
|
|
|
android:textColor="#FFBC00"
|
|
|
+ android:textSize="11sp"
|
|
|
android:visibility="@{vm.user.msg_num==0?View.GONE:View.VISIBLE}"
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
app:layout_constraintTop_toBottomOf="@id/ll"
|
|
|
- android:layout_height="17dp"/>
|
|
|
-
|
|
|
+ app:qmui_backgroundColor="@color/white"
|
|
|
+ app:qmui_borderColor="@color/white"
|
|
|
+ app:qmui_radius="50dp"
|
|
|
+ tools:text="2" />
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
@@ -93,115 +94,146 @@
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
app:layout_constraintTop_toBottomOf="@id/img_info">
|
|
|
|
|
|
- <com.qmuiteam.qmui.widget.QMUIRadiusImageView
|
|
|
- android:id="@+id/img_user_avater"
|
|
|
- android:layout_width="55dp"
|
|
|
- android:layout_height="55dp"
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:orientation="horizontal"
|
|
|
android:layout_marginStart="38dp"
|
|
|
android:layout_marginTop="34dp"
|
|
|
- android:src="@drawable/ic_default_avatar"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
- app:qmui_border_color="@color/white"
|
|
|
- app:qmui_is_circle="true"
|
|
|
- android:onClick="@{v->vm.goPassword(3)}"
|
|
|
- app:drawable="@{@drawable/ic_default_avatar}"
|
|
|
- app:url="@{vm.user.avatar()}" />
|
|
|
+ android:layout_height="wrap_content">
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_user_name"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="7dp"
|
|
|
- android:text="@{vm.user.name}"
|
|
|
- android:textColor="#111111"
|
|
|
- android:onClick="@{v->vm.goPassword(3)}"
|
|
|
|
|
|
- android:textSize="20sp"
|
|
|
- android:textStyle="bold"
|
|
|
- app:layout_constraintStart_toEndOf="@id/img_user_avater"
|
|
|
- app:layout_constraintTop_toTopOf="@id/img_user_avater"
|
|
|
- tools:text="郑货主" />
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_user_mobile"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="@dimen/dp_10"
|
|
|
- android:layout_marginTop="2dp"
|
|
|
- android:layout_marginBottom="10dp"
|
|
|
- android:onClick="@{v->vm.goPassword(3)}"
|
|
|
- android:text="@{vm.user.mobile}"
|
|
|
- android:textColor="#606060"
|
|
|
- android:textSize="14sp"
|
|
|
- app:layout_constraintStart_toEndOf="@id/img_user_avater"
|
|
|
- app:layout_constraintTop_toBottomOf="@id/tv_user_name"
|
|
|
- tools:text="18353965350" />
|
|
|
+ <com.qmuiteam.qmui.widget.QMUIRadiusImageView
|
|
|
+ android:id="@+id/img_user_avater"
|
|
|
+ android:layout_width="55dp"
|
|
|
+ android:layout_height="55dp"
|
|
|
+ android:onClick="@{v->vm.goPassword(3)}"
|
|
|
+ android:src="@drawable/ic_default_avatar"
|
|
|
+ app:drawable="@{@drawable/ic_default_avatar}"
|
|
|
+ app:qmui_border_color="@color/white"
|
|
|
+ app:qmui_is_circle="true"
|
|
|
+ app:url="@{vm.user.avatar()}" />
|
|
|
|
|
|
|
|
|
- <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
- android:id="@+id/btn_identity_unverified"
|
|
|
- android:layout_width="84dp"
|
|
|
- android:layout_height="26dp"
|
|
|
- android:layout_marginEnd="49dp"
|
|
|
- android:gravity="center"
|
|
|
- android:onClick="@{v->vm.goPersonalVerify()}"
|
|
|
- android:orientation="horizontal"
|
|
|
- app:layout_constraintBottom_toTopOf="@id/btn_com_unverified"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="@id/img_user_avater"
|
|
|
- app:qmui_borderColor="#FFBC00"
|
|
|
- app:qmui_borderWidth="1dp"
|
|
|
- app:qmui_radius="4dp">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="@{vm.getIdentity(vm.user.is_info,1)}"
|
|
|
- android:textColor="#FFBC00"
|
|
|
- android:textSize="11sp"
|
|
|
- tools:text="身份未认证" />
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
|
|
|
- <ImageView
|
|
|
- android:layout_width="8dp"
|
|
|
- android:layout_height="10dp"
|
|
|
- android:layout_marginStart="4dp"
|
|
|
- android:src="@drawable/ic_yellow_right" />
|
|
|
|
|
|
- </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_user_name"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="7dp"
|
|
|
+ android:onClick="@{v->vm.goPassword(3)}"
|
|
|
+ android:text="@{vm.user.name}"
|
|
|
+ android:textColor="#111111"
|
|
|
+ android:layout_marginRight="@dimen/dp_5"
|
|
|
+ android:textSize="20sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ tools:text="郑货主12222222222222222222222" />
|
|
|
|
|
|
- <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
- android:id="@+id/btn_com_unverified"
|
|
|
- android:layout_width="84dp"
|
|
|
- android:layout_height="26dp"
|
|
|
- android:layout_marginTop="8dp"
|
|
|
- android:layout_marginEnd="49dp"
|
|
|
- android:gravity="center"
|
|
|
- android:onClick="@{v->vm.user.isDriver()?vm.goVehicleVerify():vm.goComVerify()}"
|
|
|
- android:orientation="horizontal"
|
|
|
- app:layout_constraintBottom_toBottomOf="@id/img_user_avater"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@id/btn_identity_unverified"
|
|
|
- app:qmui_borderColor="#FFBC00"
|
|
|
- app:qmui_borderWidth="1dp"
|
|
|
- app:qmui_radius="4dp">
|
|
|
-
|
|
|
- <TextView
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_user_mobile"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/dp_10"
|
|
|
+ android:layout_marginTop="2dp"
|
|
|
+ android:layout_marginBottom="10dp"
|
|
|
+ android:onClick="@{v->vm.goPassword(3)}"
|
|
|
+ android:text="@{vm.user.mobile}"
|
|
|
+ android:textColor="#606060"
|
|
|
+ android:textSize="14sp"
|
|
|
+ tools:text="18353965350" />
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="@{vm.user.isDriver()? vm.getIdentity(vm.user.is_car,2):vm.getIdentity(vm.user.is_company,3)}"
|
|
|
- android:textColor="#FFBC00"
|
|
|
- android:textSize="11sp"
|
|
|
- tools:text="身份未认证" />
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
+ android:id="@+id/btn_identity_unverified"
|
|
|
+ android:layout_width="84dp"
|
|
|
+ android:layout_height="26dp"
|
|
|
+ android:layout_marginEnd="49dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:onClick="@{v->vm.goPersonalVerify()}"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ app:qmui_borderColor="#FFBC00"
|
|
|
+ app:qmui_borderWidth="1dp"
|
|
|
+ app:qmui_radius="4dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@{vm.getIdentity(vm.user.is_info,1)}"
|
|
|
+ android:textColor="#FFBC00"
|
|
|
+ android:textSize="11sp"
|
|
|
+ tools:text="身份未认证" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="8dp"
|
|
|
+ android:layout_height="10dp"
|
|
|
+ android:layout_marginStart="4dp"
|
|
|
+ android:src="@drawable/ic_yellow_right" />
|
|
|
+
|
|
|
+ </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
+ android:id="@+id/btn_com_unverified"
|
|
|
+ android:layout_width="84dp"
|
|
|
+ android:layout_height="26dp"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:layout_marginEnd="49dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:onClick="@{v->vm.user.isDriver()?vm.goVehicleVerify():vm.goComVerify()}"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ app:qmui_borderColor="#FFBC00"
|
|
|
+ app:qmui_borderWidth="1dp"
|
|
|
+ app:qmui_radius="4dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@{vm.user.isDriver()? vm.getIdentity(vm.user.is_car,2):vm.getIdentity(vm.user.is_company,3)}"
|
|
|
+ android:textColor="#FFBC00"
|
|
|
+ android:textSize="11sp"
|
|
|
+ tools:text="身份未认证" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="8dp"
|
|
|
+ android:layout_height="10dp"
|
|
|
+ android:layout_marginStart="4dp"
|
|
|
+ android:src="@drawable/ic_yellow_right" />
|
|
|
+
|
|
|
+ </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- <ImageView
|
|
|
- android:layout_width="8dp"
|
|
|
- android:layout_height="10dp"
|
|
|
- android:layout_marginStart="4dp"
|
|
|
- android:src="@drawable/ic_yellow_right" />
|
|
|
|
|
|
- </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@@ -225,9 +257,9 @@
|
|
|
android:orientation="horizontal"
|
|
|
android:paddingTop="16dp"
|
|
|
android:paddingBottom="15dp"
|
|
|
+ android:visibility="@{vm.user.isDriver()?View.VISIBLE:View.GONE}"
|
|
|
app:qmui_backgroundColor="@color/white"
|
|
|
app:qmui_borderColor="@color/white"
|
|
|
- android:visibility="@{vm.user.isDriver()?View.VISIBLE:View.GONE}"
|
|
|
app:qmui_radius="10dp">
|
|
|
|
|
|
<LinearLayout
|
|
@@ -301,8 +333,8 @@
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_weight="1"
|
|
|
- android:onClick="@{v->vm.toCall(vm.user.kf_mobile)}"
|
|
|
android:gravity="center"
|
|
|
+ android:onClick="@{v->vm.toCall(vm.user.kf_mobile)}"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
<ImageView
|
|
@@ -333,9 +365,9 @@
|
|
|
android:orientation="horizontal"
|
|
|
android:paddingTop="16dp"
|
|
|
android:paddingBottom="15dp"
|
|
|
+ android:visibility="@{vm.user.isDriver()?View.GONE:View.VISIBLE}"
|
|
|
app:qmui_backgroundColor="@color/white"
|
|
|
app:qmui_borderColor="@color/white"
|
|
|
- android:visibility="@{vm.user.isDriver()?View.GONE:View.VISIBLE}"
|
|
|
app:qmui_radius="10dp">
|
|
|
|
|
|
<LinearLayout
|
|
@@ -410,8 +442,8 @@
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_weight="1"
|
|
|
- android:onClick="@{v->vm.toCall(vm.user.kf_mobile)}"
|
|
|
android:gravity="center"
|
|
|
+ android:onClick="@{v->vm.toCall(vm.user.kf_mobile)}"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
<ImageView
|
|
@@ -450,8 +482,7 @@
|
|
|
<LinearLayout
|
|
|
style="@style/mine_list"
|
|
|
android:onClick="@{v->vm.goComment()}"
|
|
|
- android:visibility="@{vm.user.isDriver()?View.GONE:View.VISIBLE}"
|
|
|
- >
|
|
|
+ android:visibility="@{vm.user.isDriver()?View.GONE:View.VISIBLE}">
|
|
|
|
|
|
<ImageView
|
|
|
style="@style/mine_img"
|
|
@@ -468,9 +499,9 @@
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
|
- android:visibility="@{vm.user.isDriver()?View.GONE:View.VISIBLE}"
|
|
|
style="@style/mine_list"
|
|
|
- android:onClick="@{v->vm.goAdress()}">
|
|
|
+ android:onClick="@{v->vm.goAdress()}"
|
|
|
+ android:visibility="@{vm.user.isDriver()?View.GONE:View.VISIBLE}">
|
|
|
|
|
|
<ImageView
|
|
|
style="@style/mine_img"
|