|
@@ -15,6 +15,8 @@
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
+ android:background="@color/color_bg"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
android:orientation="vertical" >
|
|
|
|
|
|
<FrameLayout
|
|
@@ -28,145 +30,222 @@
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:background="@color/color_bg"
|
|
|
android:orientation="vertical" >
|
|
|
|
|
|
+
|
|
|
+
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:orientation="vertical"
|
|
|
- android:paddingTop="@dimen/dp_10"
|
|
|
- android:paddingBottom="@dimen/dp_10" >
|
|
|
+ >
|
|
|
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="17dp"
|
|
|
+ android:layout_marginTop="7dp"
|
|
|
+ android:layout_marginBottom="6dp"
|
|
|
+ android:text="功能"
|
|
|
+ android:textColor="#767778"
|
|
|
+ android:textSize="@dimen/sp_12" />
|
|
|
|
|
|
<RelativeLayout
|
|
|
android:id="@+id/lay_login_password"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="48dp"
|
|
|
+ android:layout_height="44dp"
|
|
|
+ android:background="@color/white"
|
|
|
android:onClick="@{v->vm.goPassword(1)}"
|
|
|
- android:layout_marginStart="@dimen/dp_14" >
|
|
|
+ android:paddingStart="19dp" >
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/img_icon1"
|
|
|
- android:layout_width="30dp"
|
|
|
- android:layout_height="30dp"
|
|
|
+ android:layout_width="22dp"
|
|
|
+ android:layout_height="24dp"
|
|
|
android:layout_centerVertical="true"
|
|
|
- android:padding="@dimen/dp_4"
|
|
|
- android:src="@drawable/ic_login_pwd" />
|
|
|
+ android:src="@drawable/ic_setting_pwd" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_title1"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_centerVertical="true"
|
|
|
- android:layout_marginLeft="@dimen/dp_10"
|
|
|
+ android:layout_marginLeft="18dp"
|
|
|
android:layout_toRightOf="@id/img_icon1"
|
|
|
android:gravity="center_vertical"
|
|
|
- android:text="登录密码"
|
|
|
- android:textColor="@color/primary_text"
|
|
|
- android:textSize="@dimen/sp_15" />
|
|
|
+ android:text="修改密码"
|
|
|
+ android:textColor="@color/text_title"
|
|
|
+ android:textSize="@dimen/sp_14" />
|
|
|
|
|
|
- <ImageView
|
|
|
+ <ImageView
|
|
|
style="@style/mine_arrow_right"
|
|
|
android:layout_centerVertical="true"
|
|
|
android:layout_alignParentRight="true"
|
|
|
- android:layout_marginEnd="@dimen/dp_12"
|
|
|
+ android:layout_marginEnd="@dimen/dp_17"
|
|
|
android:src="@drawable/mine_right" />
|
|
|
|
|
|
- <View
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="1dp"
|
|
|
- android:layout_alignLeft="@id/tv_title1"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
- android:background="@color/color_page_bg" />
|
|
|
-
|
|
|
</RelativeLayout >
|
|
|
|
|
|
<View
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="1dp"
|
|
|
- android:layout_marginLeft="@dimen/dp_14"
|
|
|
- android:background="@color/color_page_bg" />
|
|
|
+ android:background="#EEEFF0" />
|
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
android:id="@+id/lay_pay_password"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="48dp"
|
|
|
+ android:layout_height="44dp"
|
|
|
+ android:background="@color/white"
|
|
|
android:onClick="@{v->vm.goPassword(2)}"
|
|
|
- android:layout_marginStart="@dimen/dp_14" >
|
|
|
+ android:paddingStart="19dp" >
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/img_icon2"
|
|
|
- android:layout_width="30dp"
|
|
|
- android:layout_height="30dp"
|
|
|
+ android:layout_width="22dp"
|
|
|
+ android:layout_height="24dp"
|
|
|
android:layout_centerVertical="true"
|
|
|
- android:padding="@dimen/dp_4"
|
|
|
- android:src="@drawable/ic_login_pwd" />
|
|
|
+ android:src="@drawable/ic_setting_pwd" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_title2"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_centerVertical="true"
|
|
|
- android:layout_marginLeft="@dimen/dp_10"
|
|
|
+ android:layout_marginLeft="18dp"
|
|
|
android:layout_toRightOf="@id/img_icon2"
|
|
|
android:gravity="center_vertical"
|
|
|
android:text="支付密码"
|
|
|
- android:textColor="@color/primary_text"
|
|
|
- android:textSize="@dimen/sp_15" />
|
|
|
+ android:textColor="@color/text_title"
|
|
|
+ android:textSize="@dimen/sp_14" />
|
|
|
|
|
|
<ImageView
|
|
|
style="@style/mine_arrow_right"
|
|
|
android:layout_centerVertical="true"
|
|
|
android:layout_alignParentRight="true"
|
|
|
- android:layout_marginEnd="@dimen/dp_12"
|
|
|
+ android:layout_marginEnd="17dp"
|
|
|
android:src="@drawable/mine_right" />
|
|
|
|
|
|
- <View
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="1dp"
|
|
|
- android:layout_alignLeft="@id/tv_title2"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
- android:background="@color/color_page_bg" />
|
|
|
|
|
|
</RelativeLayout >
|
|
|
|
|
|
<View
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="1dp"
|
|
|
- android:layout_marginLeft="@dimen/dp_14"
|
|
|
- android:background="@color/color_page_bg" />
|
|
|
+ android:background="#EEEFF0" />
|
|
|
+
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/lay_bank"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="44dp"
|
|
|
+ android:background="@color/white"
|
|
|
+ android:onClick="@{v->vm.goBank()}"
|
|
|
+ android:paddingStart="19dp" >
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/img_bank"
|
|
|
+ android:layout_width="20dp"
|
|
|
+ android:layout_height="18dp"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:src="@drawable/ic_setting_bank" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_bank"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_marginLeft="18dp"
|
|
|
+ android:layout_toRightOf="@id/img_bank"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:text="银行卡信息"
|
|
|
+ android:textColor="@color/text_title"
|
|
|
+ android:textSize="@dimen/sp_14" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ style="@style/mine_arrow_right"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_alignParentRight="true"
|
|
|
+ android:layout_marginEnd="17dp"
|
|
|
+ android:src="@drawable/mine_right" />
|
|
|
+
|
|
|
+
|
|
|
+ </RelativeLayout >
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
android:layout_width="wrap_content"
|
|
|
- android:layout_height="28dp"
|
|
|
- android:layout_marginLeft="@dimen/dp_14"
|
|
|
- android:layout_marginTop="@dimen/dp_2"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:text="应用"
|
|
|
- android:textSize="@dimen/sp_14" />
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="17dp"
|
|
|
+ android:layout_marginTop="6dp"
|
|
|
+ android:layout_marginBottom="6dp"
|
|
|
+ android:text="关于"
|
|
|
+ android:textColor="#767778"
|
|
|
+ android:textSize="@dimen/sp_12" />
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/lay_about_us"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="44dp"
|
|
|
+ android:background="@color/white"
|
|
|
+ android:paddingStart="21dp" >
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/img_icon15"
|
|
|
+ android:layout_width="20dp"
|
|
|
+ android:layout_height="20dp"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:src="@drawable/ic_about_us" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_title15"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_marginStart="17dp"
|
|
|
+ android:layout_toRightOf="@id/img_icon15"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:text="关于我们"
|
|
|
+ android:textColor="@color/text_title"
|
|
|
+ android:textSize="@dimen/sp_14" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ style="@style/mine_arrow_right"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_alignParentRight="true"
|
|
|
+ android:layout_marginEnd="17dp"
|
|
|
+ android:src="@drawable/mine_right" />
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </RelativeLayout >
|
|
|
|
|
|
<View
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="1dp"
|
|
|
- android:layout_marginLeft="@dimen/dp_14"
|
|
|
- android:background="@color/color_page_bg" />
|
|
|
+ android:background="#EEEFF0" />
|
|
|
|
|
|
<RelativeLayout
|
|
|
android:id="@+id/lay_checkupdate"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="48dp"
|
|
|
- android:layout_marginStart="@dimen/dp_14" >
|
|
|
+ android:layout_height="44dp"
|
|
|
+ android:background="@color/white"
|
|
|
+ android:paddingStart="21dp" >
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/img_icon14"
|
|
|
- android:layout_width="30dp"
|
|
|
- android:layout_height="30dp"
|
|
|
+ android:layout_width="20dp"
|
|
|
+ android:layout_height="19dp"
|
|
|
android:layout_centerVertical="true"
|
|
|
- android:padding="@dimen/dp_4"
|
|
|
android:src="@drawable/ic_check_update" />
|
|
|
|
|
|
<TextView
|
|
@@ -174,98 +253,79 @@
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_centerVertical="true"
|
|
|
- android:layout_marginLeft="@dimen/dp_10"
|
|
|
+ android:layout_marginLeft="17dp"
|
|
|
android:layout_toRightOf="@id/img_icon14"
|
|
|
android:gravity="center_vertical"
|
|
|
android:text="检查更新"
|
|
|
- android:textColor="@color/primary_text"
|
|
|
- android:textSize="@dimen/sp_15" />
|
|
|
+ android:textColor="@color/text_title"
|
|
|
+ android:textSize="@dimen/sp_14" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_version_name"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_alignParentRight="true"
|
|
|
android:layout_centerVertical="true"
|
|
|
- android:layout_marginRight="@dimen/dp_14"
|
|
|
android:gravity="center_vertical"
|
|
|
android:text="@{`V`+BuildConfig.VERSION_NAME}"
|
|
|
- android:textColor="@color/secondary_text"
|
|
|
- android:textSize="@dimen/sp_12" />
|
|
|
+ android:textColor="#26292F"
|
|
|
+ tools:text="v1.01.11"
|
|
|
+ android:layout_marginEnd="12dp"
|
|
|
+ android:layout_alignRight="@id/iv"
|
|
|
+ android:textSize="@dimen/sp_13" />
|
|
|
|
|
|
- <View
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="1dp"
|
|
|
- android:layout_alignLeft="@id/tv_title14"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
- android:background="@color/color_page_bg" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv"
|
|
|
+ style="@style/mine_arrow_right"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_alignParentRight="true"
|
|
|
+ android:layout_marginEnd="17dp"
|
|
|
+ android:src="@drawable/mine_right" />
|
|
|
|
|
|
</RelativeLayout >
|
|
|
|
|
|
- <RelativeLayout
|
|
|
- android:id="@+id/lay_about_us"
|
|
|
+ <View
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="48dp"
|
|
|
- android:layout_marginStart="@dimen/dp_14" >
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:background="#EEEFF0" />
|
|
|
+
|
|
|
|
|
|
- <ImageView
|
|
|
- android:id="@+id/img_icon15"
|
|
|
- android:layout_width="30dp"
|
|
|
- android:layout_height="30dp"
|
|
|
- android:layout_centerVertical="true"
|
|
|
- android:padding="@dimen/dp_4"
|
|
|
- android:src="@drawable/ic_about_us" />
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_title15"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_centerVertical="true"
|
|
|
- android:layout_marginLeft="@dimen/dp_10"
|
|
|
- android:layout_toRightOf="@id/img_icon15"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:text="关于我们"
|
|
|
- android:textColor="@color/primary_text"
|
|
|
- android:textSize="@dimen/sp_15" />
|
|
|
|
|
|
- <View
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="1dp"
|
|
|
- android:layout_alignLeft="@id/tv_title15"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
- android:background="@color/color_page_bg" />
|
|
|
|
|
|
- </RelativeLayout >
|
|
|
|
|
|
</LinearLayout >
|
|
|
</LinearLayout >
|
|
|
</ScrollView >
|
|
|
|
|
|
- <androidx.cardview.widget.CardView
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/fl_logout"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="45dp"
|
|
|
- android:layout_gravity="bottom"
|
|
|
- android:layout_marginLeft="35dp"
|
|
|
- android:layout_marginTop="35dp"
|
|
|
- android:layout_marginRight="35dp"
|
|
|
- android:layout_marginBottom="@dimen/sp_15"
|
|
|
- android:background="@color/colorPrimary"
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
+ android:layout_marginEnd="@dimen/dp_16"
|
|
|
android:visibility="@{vm.user.isLogin()?0:8}"
|
|
|
- app:cardBackgroundColor="@color/colorPrimary"
|
|
|
- app:cardCornerRadius="22.5dp"
|
|
|
- app:cardElevation="2dp"
|
|
|
- app:cardPreventCornerOverlap="true" >
|
|
|
-
|
|
|
- <Button
|
|
|
- android:id="@+id/btn_logout"
|
|
|
+ android:layout_gravity="bottom"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ <ImageView
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:background="@color/colorPrimary"
|
|
|
- android:text="@string/logout"
|
|
|
+ android:layout_height="106dp"
|
|
|
+ android:src="@drawable/ic_details_grab" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:text="退出登录"
|
|
|
android:textColor="@color/white"
|
|
|
- android:textSize="@dimen/sp_16" />
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+ </TextView>
|
|
|
+
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- </androidx.cardview.widget.CardView >
|
|
|
|
|
|
</FrameLayout >
|
|
|
</LinearLayout >
|