|
@@ -1,7 +1,7 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
- xmlns:tools="http://schemas.android.com/tools"
|
|
|
- xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
|
|
<data>
|
|
|
|
|
@@ -19,6 +19,17 @@
|
|
|
android:background="@color/c_bg"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
+ <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
|
+ android:id="@+id/refresh_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="50dp"
|
|
@@ -39,9 +50,9 @@
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
android:layout_width="24dp"
|
|
|
android:layout_height="24dp"
|
|
|
- android:onClick="@{v->vm.toSettinng()}"
|
|
|
android:layout_marginLeft="20dp"
|
|
|
android:layout_marginRight="15dp"
|
|
|
+ android:onClick="@{v->vm.toSettinng()}"
|
|
|
android:src="@drawable/mine_set" />
|
|
|
</LinearLayout>
|
|
|
|
|
@@ -64,16 +75,15 @@
|
|
|
android:src="@drawable/ic_default_avatar"
|
|
|
app:qmui_border_color="@color/translucent"
|
|
|
app:qmui_corner_radius="2dp"
|
|
|
- app:url="@{vm.user.headimg}"
|
|
|
app:qmui_is_oval="true"
|
|
|
- />
|
|
|
+ app:url="@{vm.user.headimg}" />
|
|
|
|
|
|
<ImageView
|
|
|
android:layout_width="56dp"
|
|
|
android:layout_height="24dp"
|
|
|
- android:src="@{vm.isShowAuth(vm.user.is_auth)}"
|
|
|
android:layout_marginStart="20dp"
|
|
|
android:layout_marginTop="35dp"
|
|
|
+ android:src="@{vm.isShowAuth(vm.user.is_auth)}"
|
|
|
tools:src="@drawable/ic_renzheng_no" />
|
|
|
|
|
|
|
|
@@ -117,9 +127,9 @@
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:background="@drawable/bg_mine_copy"
|
|
|
+ android:onClick="@{v->vm.toCopyText()}"
|
|
|
android:paddingLeft="6dp"
|
|
|
android:paddingTop="3dp"
|
|
|
- android:onClick="@{v->vm.toCopyText()}"
|
|
|
android:paddingRight="6dp"
|
|
|
android:paddingBottom="3dp"
|
|
|
android:text="复制"
|
|
@@ -135,82 +145,87 @@
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="17dp"
|
|
|
android:layout_marginStart="15dp"
|
|
|
+ android:layout_marginTop="17dp"
|
|
|
android:layout_marginEnd="15dp"
|
|
|
android:layout_marginBottom="8dp"
|
|
|
android:background="@drawable/bg_mine_gray"
|
|
|
android:orientation="vertical">
|
|
|
+
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="96dp"
|
|
|
- android:visibility="visible"
|
|
|
+ android:background="@drawable/bg_mine_withdraw_copy"
|
|
|
android:onClick="@{v->vm.toMyWallet()}"
|
|
|
- tools:visibility="visible"
|
|
|
android:orientation="vertical"
|
|
|
android:paddingLeft="20dp"
|
|
|
android:paddingRight="20dp"
|
|
|
- android:background="@drawable/bg_mine_withdraw_copy">
|
|
|
+ android:visibility="visible"
|
|
|
+ tools:visibility="visible">
|
|
|
+
|
|
|
<TextView
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginTop="10dp"
|
|
|
- android:textColor="#151314"
|
|
|
android:text="账户余额"
|
|
|
- android:textSize="12sp"/>
|
|
|
+ android:textColor="#151314"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginTop="10dp"
|
|
|
android:orientation="horizontal">
|
|
|
+
|
|
|
<TextView
|
|
|
android:layout_width="0dp"
|
|
|
- android:layout_weight="1"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:textColor="#151314"
|
|
|
- android:textSize="28sp"
|
|
|
- android:text="@{vm.money}"
|
|
|
- android:maxLines="1"
|
|
|
+ android:layout_weight="1"
|
|
|
android:ellipsize="end"
|
|
|
- />
|
|
|
+ android:maxLines="1"
|
|
|
+ android:text="@{vm.money}"
|
|
|
+ android:textColor="#151314"
|
|
|
+ android:textSize="28sp" />
|
|
|
+
|
|
|
<TextView
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:textColor="#151314"
|
|
|
+ android:background="@drawable/bg_mine_withdraw_button"
|
|
|
android:onClick="@{v->vm.toWithdrawal()}"
|
|
|
- android:text="提现"
|
|
|
android:paddingLeft="16dp"
|
|
|
- android:paddingRight="16dp"
|
|
|
android:paddingTop="4dp"
|
|
|
+ android:paddingRight="16dp"
|
|
|
android:paddingBottom="4dp"
|
|
|
- android:background="@drawable/bg_mine_withdraw_button"
|
|
|
- android:textSize="14sp"/>
|
|
|
+ android:text="提现"
|
|
|
+ android:textColor="#151314"
|
|
|
+ android:textSize="14sp" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
|
+
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="80dp"
|
|
|
android:paddingLeft="15dp"
|
|
|
android:paddingRight="15dp">
|
|
|
+
|
|
|
<LinearLayout
|
|
|
android:layout_width="0dp"
|
|
|
- android:onClick="@{v->vm.toMyOrder()}"
|
|
|
android:layout_height="match_parent"
|
|
|
android:layout_weight="1"
|
|
|
android:gravity="center"
|
|
|
+ android:onClick="@{v->vm.toMyOrder()}"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
android:layout_width="24dp"
|
|
|
android:layout_height="24dp"
|
|
|
- android:src="@drawable/no_pay"/>
|
|
|
+ android:src="@drawable/no_pay" />
|
|
|
+
|
|
|
<TextView
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
@@ -290,28 +305,25 @@
|
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:orientation="vertical"
|
|
|
- android:layout_marginTop="8dp"
|
|
|
android:layout_marginLeft="15dp"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
android:layout_marginRight="15dp"
|
|
|
+ android:background="@drawable/bg_mine_gray"
|
|
|
+ android:orientation="vertical"
|
|
|
android:paddingLeft="17dp"
|
|
|
- android:paddingRight="15dp"
|
|
|
android:paddingTop="10dp"
|
|
|
- android:paddingBottom="10dp"
|
|
|
- android:background="@drawable/bg_mine_gray">
|
|
|
+ android:paddingRight="15dp"
|
|
|
+ android:paddingBottom="10dp">
|
|
|
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="55dp"
|
|
|
android:gravity="center_vertical"
|
|
|
android:onClick="@{v->vm.toConsign()}"
|
|
|
- android:orientation="horizontal"
|
|
|
- >
|
|
|
+ android:orientation="horizontal">
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
android:layout_width="28dp"
|
|
@@ -337,10 +349,9 @@
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="55dp"
|
|
|
- android:onClick="@{v->vm.toDraw()}"
|
|
|
android:gravity="center_vertical"
|
|
|
- android:orientation="horizontal"
|
|
|
- >
|
|
|
+ android:onClick="@{v->vm.toDraw()}"
|
|
|
+ android:orientation="horizontal">
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
android:layout_width="28dp"
|
|
@@ -366,10 +377,9 @@
|
|
|
android:id="@+id/shipping_address_btn"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="55dp"
|
|
|
- android:onClick="@{v->vm.toInviteFriends()}"
|
|
|
android:gravity="center_vertical"
|
|
|
- android:orientation="horizontal"
|
|
|
- >
|
|
|
+ android:onClick="@{v->vm.toInviteFriends()}"
|
|
|
+ android:orientation="horizontal">
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
android:layout_width="28dp"
|
|
@@ -394,10 +404,9 @@
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="55dp"
|
|
|
- android:onClick="@{v->vm.toCall()}"
|
|
|
android:gravity="center_vertical"
|
|
|
- android:orientation="horizontal"
|
|
|
- >
|
|
|
+ android:onClick="@{v->vm.toCall()}"
|
|
|
+ android:orientation="horizontal">
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
android:layout_width="28dp"
|
|
@@ -419,6 +428,11 @@
|
|
|
android:src="@drawable/next_black_img" />
|
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
+
|
|
|
</LinearLayout>
|
|
|
|
|
|
|