From 9c67fc611daf6f9cb7c05f72d598543bff2d26f1 Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期五, 25 十月 2024 11:23:17 +0800 Subject: [PATCH] s2024年10月25日11:23:14 --- app/src/main/res/layout/fragment_me.xml | 177 ++++++++++++++++++++++++++++++++++++++++------------------- 1 files changed, 120 insertions(+), 57 deletions(-) diff --git a/app/src/main/res/layout/fragment_me.xml b/app/src/main/res/layout/fragment_me.xml index c61cadf..5e4661d 100644 --- a/app/src/main/res/layout/fragment_me.xml +++ b/app/src/main/res/layout/fragment_me.xml @@ -3,70 +3,133 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/me_parent" android:layout_width="match_parent" - android:layout_height="match_parent"> + android:layout_height="match_parent" + android:background="@drawable/bj"> - <TextView - android:id="@+id/me_title_tv" - android:layout_width="wrap_content" - android:layout_height="@dimen/dp_22" - android:layout_marginTop="53dp" - android:text="@string/me" - android:textColor="@color/text_030D1C" - android:textSize="@dimen/text_18" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toTopOf="parent" /> - - <androidx.constraintlayout.widget.ConstraintLayout - android:id="@+id/fragment_me_icon_parent_cl" + <androidx.core.widget.NestedScrollView android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_marginTop="@dimen/dp_31" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/me_title_tv"> + android:layout_height="match_parent" + android:fillViewport="true" + android:overScrollMode="never"> - <ImageView - android:id="@+id/fragment_me_icon_iv" - android:layout_width="73dp" - android:layout_height="73dp" - android:background="@drawable/default_image" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toTopOf="parent" /> + <androidx.constraintlayout.widget.ConstraintLayout + android:layout_width="match_parent" + android:layout_height="match_parent"> + <!--澶撮儴鏍囩--> + <RelativeLayout + android:id="@+id/title_cl" + android:layout_width="match_parent" + android:layout_height="@dimen/dp_44" + android:layout_marginStart="@dimen/dp_16" + android:layout_marginTop="@dimen/dp_38" + android:layout_marginEnd="@dimen/dp_16" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent"> - <TextView - android:id="@+id/fragment_me_user_name_iv" - android:layout_width="wrap_content" - android:layout_height="25dp" - android:layout_marginTop="@dimen/dp_16" - android:textColor="@color/text_E6000000" - android:textSize="@dimen/text_18" - app:layout_constraintEnd_toEndOf="@+id/fragment_me_icon_iv" - app:layout_constraintStart_toStartOf="@+id/fragment_me_icon_iv" - app:layout_constraintTop_toBottomOf="@+id/fragment_me_icon_iv" /> - </androidx.constraintlayout.widget.ConstraintLayout> + <TextView + android:id="@+id/me_title_tv" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerInParent="true" + android:text="@string/me" + android:textColor="@color/text_030D1C" + android:textSize="@dimen/text_18" /> - <LinearLayout - android:layout_width="match_parent" - android:layout_height="0dp" - android:layout_marginStart="@dimen/dp_20" - android:layout_marginTop="@dimen/dp_48" - android:layout_marginEnd="@dimen/dp_16" - android:background="@drawable/bj_13fffffff" - android:orientation="vertical" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/fragment_me_icon_parent_cl"> - <include - android:id="@+id/fragment_me_line_set_il" - layout="@layout/fragment_me_line" /> + </RelativeLayout> - <include - android:id="@+id/fragment_me_line_asregards_il" - layout="@layout/fragment_me_line" /> - </LinearLayout> + <androidx.constraintlayout.widget.ConstraintLayout + android:id="@+id/fragment_me_icon_parent_cl" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/dp_13" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/title_cl"> + + <ImageView + android:id="@+id/fragment_me_icon_iv" + android:layout_width="73dp" + android:layout_height="73dp" + android:background="@drawable/default_image" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + + <TextView + android:id="@+id/fragment_me_user_name_tv" + android:layout_width="wrap_content" + android:layout_height="22dp" + android:layout_marginTop="@dimen/dp_16" + android:textColor="@color/text_E6000000" + android:textSize="@dimen/text_18" + app:layout_constraintEnd_toEndOf="@+id/fragment_me_icon_iv" + app:layout_constraintStart_toStartOf="@+id/fragment_me_icon_iv" + app:layout_constraintTop_toBottomOf="@+id/fragment_me_icon_iv" /> + + <ImageView + android:id="@+id/fragment_me_user_name_next_iv" + android:layout_width="16dp" + android:layout_height="@dimen/dp_16" + android:layout_marginStart="3dp" + android:src="@drawable/next" + app:layout_constraintBottom_toBottomOf="@+id/fragment_me_user_name_tv" + app:layout_constraintStart_toEndOf="@+id/fragment_me_user_name_tv" + app:layout_constraintTop_toTopOf="@+id/fragment_me_user_name_tv" /> + + <TextView + android:id="@+id/fragment_me_user_role_tv" + android:layout_width="wrap_content" + android:layout_height="17dp" + android:layout_marginTop="@dimen/dp_11" + android:textColor="@color/text_66000000" + android:textSize="@dimen/text_14" + app:layout_constraintEnd_toEndOf="@+id/fragment_me_icon_iv" + app:layout_constraintStart_toStartOf="@+id/fragment_me_icon_iv" + app:layout_constraintTop_toBottomOf="@+id/fragment_me_user_name_tv" /> + + <ImageView + android:id="@+id/fragment_me_user_role_next_iv" + android:layout_width="@dimen/dp_16" + android:layout_height="@dimen/dp_16" + android:layout_marginStart="3dp" + android:src="@drawable/next" + app:layout_constraintBottom_toBottomOf="@+id/fragment_me_user_role_tv" + app:layout_constraintStart_toEndOf="@+id/fragment_me_user_role_tv" + app:layout_constraintTop_toTopOf="@+id/fragment_me_user_role_tv" /> + </androidx.constraintlayout.widget.ConstraintLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_marginStart="@dimen/dp_20" + android:layout_marginTop="@dimen/dp_25" + android:layout_marginEnd="@dimen/dp_16" + android:background="@drawable/bj_13fffffff" + android:orientation="vertical" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/fragment_me_icon_parent_cl"> + <!--璁惧璋冭瘯--> + <include + android:id="@+id/fragment_me_line_device_debug_il" + layout="@layout/fragment_me_line" /> + <!--涓昏处鍙锋墠鏄剧ず--> + <include + android:id="@+id/fragment_me_line_user_management_il" + layout="@layout/fragment_me_line" /> + + <include + android:id="@+id/fragment_me_line_set_il" + layout="@layout/fragment_me_line" /> + <!--鍏充簬--> + <include + android:id="@+id/fragment_me_line_asregards_il" + layout="@layout/fragment_me_line" /> + </LinearLayout> + </androidx.constraintlayout.widget.ConstraintLayout> + </androidx.core.widget.NestedScrollView> </androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file -- Gitblit v1.8.0