From 63608b5dca9eebb6fa2cb1a8652b395f1d910c3e Mon Sep 17 00:00:00 2001
From: 张钢 <floatgang@163.com>
Date: 星期一, 02 九月 2024 13:52:17 +0800
Subject: [PATCH] 对新接口进行了适配
---
app/src/main/res/layout/fragment_personal_center.xml | 29 +++++++++++++++++++++++++++--
1 files changed, 27 insertions(+), 2 deletions(-)
diff --git a/app/src/main/res/layout/fragment_personal_center.xml b/app/src/main/res/layout/fragment_personal_center.xml
index feef559..20de192 100644
--- a/app/src/main/res/layout/fragment_personal_center.xml
+++ b/app/src/main/res/layout/fragment_personal_center.xml
@@ -14,12 +14,12 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
- android:background="@color/color_normal_background"
+ android:background="?attr/pageBackgroundColor"
>
<com.android.app_base.widget.ExtendTitleBar
android:layout_width="match_parent"
android:layout_height="wrap_content"
- app:title="涓汉涓績"
+ app:title="鎴戠殑"
app:titleGravity="left"
android:elevation="5dp"
>
@@ -81,8 +81,10 @@
app:layout_constraintWidth_percent="0.3"
app:roundPercent="1"
app:imageUrl="@{viewModel.infoLiveData.img}"
+ android:scaleType="centerCrop"
/>
<ImageView
+ android:id="@+id/iv_take_photo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/ic_camera"
@@ -279,6 +281,29 @@
android:layout_height="1dp"
android:background="#33000000"
/>
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingVertical="12dp"
+ android:paddingHorizontal="10dp"
+ android:gravity="center_vertical"
+ >
+ <TextView
+ android:layout_width="0dp"
+ android:layout_weight="1"
+ android:layout_height="wrap_content"
+ android:textSize="18sp"
+ android:textColor="#FF212121"
+ android:text="鎶ょ溂妯″紡"
+ />
+ <com.android.app_base.widget.SwitchButton
+ android:id="@+id/switchBtn"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ />
+
+ </LinearLayout>
+
</LinearLayout>
<TextView
android:id="@+id/tv_login_out"
--
Gitblit v1.9.1