From f278edbd3f0f809e4a3b59bf16d24c624a43f98d Mon Sep 17 00:00:00 2001
From: 张钢 <floatgang@163.com>
Date: 星期四, 12 九月 2024 14:38:08 +0800
Subject: [PATCH] 修改了国籍和民族字段反转的问题

---
 app/src/main/res/layout/fragment_personal_center.xml |   39 +++++++++++++++++++++++++++++++++++++--
 1 files changed, 37 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 54ea096..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"
             >
@@ -69,6 +69,7 @@
                     >
 
                     <androidx.constraintlayout.utils.widget.ImageFilterView
+                        android:id="@+id/iv_head"
                         android:layout_width="0dp"
                         android:layout_height="0dp"
                         android:layout_marginVertical="25dp"
@@ -80,6 +81,17 @@
                         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"
+                        app:layout_constraintStart_toStartOf="@id/iv_head"
+                        app:layout_constraintEnd_toEndOf="@id/iv_head"
+                        app:layout_constraintBottom_toBottomOf="@id/iv_head"
+                        android:layout_marginBottom="-15dp"
                         />
                     <View
                         android:layout_width="match_parent"
@@ -269,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