From 590c1cff46b105d774271f950caa9f65523f05c1 Mon Sep 17 00:00:00 2001 From: Linjiajia <319408893@qq.com> Date: 星期五, 29 十二月 2023 20:20:40 +0800 Subject: [PATCH] 1、增加护眼模式主题\n2、修复显示问题 --- 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