|
@@ -0,0 +1,729 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools">
|
|
|
+
|
|
|
+ <data>
|
|
|
+
|
|
|
+ <variable
|
|
|
+ name="vm"
|
|
|
+ type="com.zswc.creativity.vmodel.HomeMyVModel" />
|
|
|
+
|
|
|
+ <import type="android.view.View" />
|
|
|
+
|
|
|
+ </data>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@drawable/bg_home_bg"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
|
+ android:id="@+id/refresh_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:focusable="true">
|
|
|
+
|
|
|
+ <androidx.core.widget.NestedScrollView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:scrollbars="none">
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ app:layout_scrollFlags="scroll">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="right"
|
|
|
+ android:layout_marginTop="56dp"
|
|
|
+ android:layout_marginEnd="15dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="24dp"
|
|
|
+ android:layout_height="24dp"
|
|
|
+ android:onClick="@{v->vm.toMsg()}"
|
|
|
+ android:src="@drawable/ct_msg" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/img_sign"
|
|
|
+ android:layout_width="64dp"
|
|
|
+ android:layout_height="30dp"
|
|
|
+ android:layout_marginStart="12dp"
|
|
|
+ android:src="@drawable/ct_qiandao_off" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="15dp"
|
|
|
+ android:layout_marginEnd="26dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:visibility="@{vm.isLogin?View.VISIBLE:View.GONE}">
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ <!-- app:url="@{vm.user.avatar}"-->
|
|
|
+ <com.qmuiteam.qmui.widget.QMUIRadiusImageView
|
|
|
+ android:id="@+id/img_avater"
|
|
|
+ android:layout_width="64dp"
|
|
|
+ android:layout_height="64dp"
|
|
|
+ android:src="@drawable/ic_default_avatar"
|
|
|
+ app:qmui_border_color="@color/white"
|
|
|
+ app:qmui_corner_radius="2dp"
|
|
|
+ app:qmui_is_oval="true"
|
|
|
+ app:url="@{vm.user.headimg}" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="56dp"
|
|
|
+ android:layout_height="24dp"
|
|
|
+ android:layout_marginStart="20dp"
|
|
|
+ android:layout_marginTop="45dp"
|
|
|
+ android:src="@{vm.isShowAuth(vm.user.isAuth)}" />
|
|
|
+
|
|
|
+
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="6dp"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@{vm.user.name}"
|
|
|
+ android:textColor="#1B1A1B"
|
|
|
+ android:textSize="20sp"
|
|
|
+ android:textStyle="bold" />
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="22dp"
|
|
|
+ android:layout_marginTop="6dp"
|
|
|
+ android:background="#B3FFFFFF"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="6dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:ellipsize="end"
|
|
|
+ android:singleLine="true"
|
|
|
+ android:text="@{`区块链地址:`+vm.user.walletAddress}"
|
|
|
+ android:textColor="#222222"
|
|
|
+ android:textSize="10sp" />
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginEnd="4dp"
|
|
|
+ android:onClick="@{v->vm.toCopyText()}"
|
|
|
+ android:paddingStart="6dp"
|
|
|
+ android:paddingTop="4dp"
|
|
|
+ android:paddingEnd="6dp"
|
|
|
+ android:paddingBottom="4dp"
|
|
|
+ android:text="复制"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="10sp"
|
|
|
+ app:qmui_backgroundColor="#38D3D3"
|
|
|
+ app:qmui_borderColor="@color/translucent"
|
|
|
+ app:qmui_radius="2dp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="15dp"
|
|
|
+ android:layout_marginEnd="26dp"
|
|
|
+ android:onClick="@{v->vm.toLogin()}"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:visibility="@{vm.isLogin?View.GONE:View.VISIBLE}">
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.QMUIRadiusImageView
|
|
|
+ android:layout_width="64dp"
|
|
|
+ android:layout_height="64dp"
|
|
|
+ android:background="@drawable/ic_default_avatar"
|
|
|
+ app:qmui_border_color="@color/white"
|
|
|
+ app:qmui_corner_radius="2dp"
|
|
|
+ app:qmui_is_oval="true" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_marginStart="10dp"
|
|
|
+ android:text="请登录"
|
|
|
+ android:textColor="#1B1A1B"
|
|
|
+ android:textSize="20sp" />
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="15dp"
|
|
|
+ android:layout_marginTop="19dp"
|
|
|
+ android:layout_marginEnd="15dp"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ app:qmui_backgroundColor="@color/white"
|
|
|
+ app:qmui_borderColor="@color/translucent"
|
|
|
+ app:qmui_radius="10dp">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
+ android:layout_marginBottom="9dp"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:gravity="center"
|
|
|
+ android:onClick="@{v->vm.toIntegral()}"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="22dp"
|
|
|
+ android:layout_height="26dp"
|
|
|
+ android:src="@drawable/ct_my_jifen" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:text="积分"
|
|
|
+ android:textColor="#666666"
|
|
|
+ android:textSize="14sp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:layout_marginTop="13dp"
|
|
|
+ android:text="@{vm.user.integral}"
|
|
|
+ android:textColor="@color/text_title"
|
|
|
+ android:textSize="20sp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="1dp"
|
|
|
+ android:layout_height="46dp"
|
|
|
+ android:background="#E7E7E7" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:onClick="@{v->vm.toMyWallet()}"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:gravity="center"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="22dp"
|
|
|
+ android:layout_height="26dp"
|
|
|
+ android:src="@drawable/ct_my_banlance" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:text="余额"
|
|
|
+ android:textColor="#666666"
|
|
|
+ android:textSize="14sp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:layout_marginTop="@dimen/dp_13"
|
|
|
+ android:text="@{vm.user.money}"
|
|
|
+ android:textColor="@color/text_title"
|
|
|
+ android:textSize="20sp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="15dp"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:layout_marginEnd="15dp"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:paddingTop="18dp"
|
|
|
+ android:paddingBottom="18dp"
|
|
|
+ app:qmui_backgroundColor="#FFFFFF"
|
|
|
+ app:qmui_borderColor="@color/translucent"
|
|
|
+ app:qmui_radius="12dp">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:onClick="@{v->vm.toMyOrder()}"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="24dp"
|
|
|
+ android:layout_height="24dp"
|
|
|
+ android:src="@drawable/ct_home_order" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="1dp"
|
|
|
+ android:text="我的订单"
|
|
|
+ android:textColor="#222222"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:onClick="@{v->vm.toConsignmentOrder()}"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="24dp"
|
|
|
+ android:layout_height="24dp"
|
|
|
+ android:src="@drawable/ct_my_jishou" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="1dp"
|
|
|
+ android:text="寄售订单"
|
|
|
+ android:textColor="#222222"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:onClick="@{v->vm.toMall()}"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="24dp"
|
|
|
+ android:layout_height="24dp"
|
|
|
+ android:src="@drawable/ct_my_store" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="1dp"
|
|
|
+ android:text="商城订单"
|
|
|
+ android:textColor="#222222"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:onClick="@{v->vm.toGiven()}"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="24dp"
|
|
|
+ android:layout_height="24dp"
|
|
|
+ android:src="@drawable/ct_my_zeng" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="1dp"
|
|
|
+ android:text="转赠"
|
|
|
+ android:textColor="#222222"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="27dp"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:onClick="@{v->vm.toCertification()}"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="24dp"
|
|
|
+ android:layout_height="24dp"
|
|
|
+ android:src="@drawable/ct_my_renzheng" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="1dp"
|
|
|
+ android:text="实名认证"
|
|
|
+ android:textColor="#222222"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:onClick="@{v->vm.toSetting()}"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="24dp"
|
|
|
+ android:layout_height="24dp"
|
|
|
+ android:src="@drawable/ct_my_setting" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="1dp"
|
|
|
+ android:text="设置"
|
|
|
+ android:textColor="#222222"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:onClick="@{v->vm.toSpread()}"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="24dp"
|
|
|
+ android:layout_height="24dp"
|
|
|
+ android:src="@drawable/ct_my_tuiguang" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="1dp"
|
|
|
+ android:text="推广"
|
|
|
+ android:textColor="#222222"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="15dp"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="我的藏品"
|
|
|
+ android:textColor="@color/text_title"
|
|
|
+ android:textSize="15sp"
|
|
|
+ android:textStyle="bold" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@{vm.num}"
|
|
|
+ android:textColor="@color/text_title"
|
|
|
+ android:textSize="15sp"
|
|
|
+ android:textStyle="bold" />
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
|
|
|
+ android:layout_width="70dp"
|
|
|
+ android:layout_height="20dp"
|
|
|
+ android:layout_marginEnd="15dp"
|
|
|
+ android:onClick="@{v->vm.toSynthesis()}"
|
|
|
+ android:text="合成藏品"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ app:qmui_backgroundColor="#38D3D3"
|
|
|
+ app:qmui_borderColor="@color/translucent"
|
|
|
+ app:qmui_radius="4dp" />
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="15dp"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:padding="4dp"
|
|
|
+ app:qmui_backgroundColor="#B3ffffff"
|
|
|
+ app:qmui_borderColor="@color/translucent"
|
|
|
+ app:qmui_radius="12dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_all"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@drawable/bg_chose_gray"
|
|
|
+ android:paddingStart="12dp"
|
|
|
+ android:paddingTop="6dp"
|
|
|
+ android:paddingEnd="12dp"
|
|
|
+ android:paddingBottom="4dp"
|
|
|
+ android:text="全部"
|
|
|
+ android:textColor="@color/text_title"
|
|
|
+ android:textSize="15sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_one"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@drawable/bg_chose_white"
|
|
|
+ android:paddingStart="12dp"
|
|
|
+ android:paddingTop="6dp"
|
|
|
+ android:paddingEnd="12dp"
|
|
|
+ android:paddingBottom="4dp"
|
|
|
+ android:text="藏品"
|
|
|
+ android:textColor="#A2A2A2"
|
|
|
+ android:textSize="15sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_two"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@drawable/bg_chose_white"
|
|
|
+ android:paddingStart="12dp"
|
|
|
+ android:paddingTop="6dp"
|
|
|
+ android:paddingEnd="12dp"
|
|
|
+ android:paddingBottom="4dp"
|
|
|
+ android:text="盲盒"
|
|
|
+ android:textColor="#A2A2A2"
|
|
|
+ android:textSize="15sp" />
|
|
|
+
|
|
|
+
|
|
|
+ </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="18dp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
+
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/recycler_collect_view"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="15dp"
|
|
|
+ app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
|
|
|
+ app:spanCount="2"
|
|
|
+ tools:listitem="@layout/item_my_box" />
|
|
|
+
|
|
|
+ <!-- -->
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="180dp"
|
|
|
+ android:layout_marginStart="50dp"
|
|
|
+ android:layout_marginEnd="50dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:visibility="@{vm.is_show?View.VISIBLE:View.GONE}"
|
|
|
+ app:qmui_backgroundColor="@color/white"
|
|
|
+ app:qmui_borderColor="@color/translucent"
|
|
|
+ app:qmui_radius="12dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
+ android:text="暂无藏品"
|
|
|
+ android:textColor="@color/text_title"
|
|
|
+ android:textSize="15sp" />
|
|
|
+
|
|
|
+
|
|
|
+ </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
+
|
|
|
+ <!-- 实名认证-->
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="50dp"
|
|
|
+ android:layout_marginEnd="50dp"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:visibility="@{vm.isShowAuthView(vm.is_auth)}"
|
|
|
+ app:qmui_backgroundColor="@color/white"
|
|
|
+ app:qmui_borderColor="@color/translucent"
|
|
|
+ app:qmui_radius="12dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
+ android:text="暂无藏品"
|
|
|
+ android:textColor="@color/text_title"
|
|
|
+ android:textSize="15sp" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="40dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:src="@drawable/ct_my_avator" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:layout_marginTop="@dimen/dp_13"
|
|
|
+ android:text="实名认证后才能支付购买藏品"
|
|
|
+ android:textColor="@color/text_title"
|
|
|
+ android:textSize="13sp" />
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ android:layout_marginStart="50dp"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:layout_marginEnd="50dp"
|
|
|
+ android:layout_marginBottom="20dp"
|
|
|
+ android:onClick="@{v->vm.toCertification()}"
|
|
|
+ android:text="实名认证"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="15sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:qmui_backgroundColor="#38D3D3"
|
|
|
+ app:qmui_borderColor="#38D3D3"
|
|
|
+ app:qmui_radius="8dp" />
|
|
|
+
|
|
|
+
|
|
|
+ </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </androidx.core.widget.NestedScrollView>
|
|
|
+
|
|
|
+ </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+</layout>
|