From 367102bbc7a3a4bdb90fd8ffabc95bff6eb35a7d Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期四, 28 十一月 2024 21:33:57 +0800 Subject: [PATCH] 2024年11月28日21:33:55 --- app/src/main/res/layout/activity_as_regards.xml | 150 ++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 121 insertions(+), 29 deletions(-) diff --git a/app/src/main/res/layout/activity_as_regards.xml b/app/src/main/res/layout/activity_as_regards.xml index ca00d89..0d49555 100644 --- a/app/src/main/res/layout/activity_as_regards.xml +++ b/app/src/main/res/layout/activity_as_regards.xml @@ -4,12 +4,81 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="@color/text_FFECECEC" + android:background="@drawable/bj" tools:context=".ui.me.AsRegardsActivity"> - <include - android:id="@+id/toolbar_top_rl" - layout="@layout/toolbar_top_view_44" /> + <RelativeLayout + android:id="@+id/top_bar_view" + android:layout_width="match_parent" + android:layout_height="@dimen/dp_54" + android:layout_marginTop="@dimen/dp_44" + android:orientation="horizontal" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent"> + + <RelativeLayout + android:id="@+id/top_content_view" + android:layout_width="match_parent" + android:layout_height="@dimen/dp_44" + android:layout_marginTop="@dimen/dp_10" + android:orientation="horizontal"> + <!--1.杩斿洖鎸夐挳 澧炲ぇ鐐瑰嚮鍖哄煙--> + <LinearLayout + android:id="@+id/top_back_ll" + android:layout_width="@dimen/dp_56" + android:layout_height="match_parent" + android:gravity="center_vertical" + android:orientation="horizontal"> + + <ImageView + android:id="@+id/top_left_iv" + android:layout_width="@dimen/dp_30" + android:layout_height="@dimen/dp_30" + android:layout_gravity="center" + android:layout_marginStart="@dimen/dp_16" + android:scaleType="centerInside" + android:src="@drawable/back" /> + </LinearLayout> + + <!--2.鏍囬鏂囨湰--> + <TextView + android:id="@+id/top_title_tv" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerInParent="true" + android:layout_marginLeft="@dimen/dp_60" + android:layout_marginRight="@dimen/dp_60" + android:gravity="center" + android:maxLines="1" + android:text="" + android:textColor="@color/text_E6FFFFFF" + android:textSize="@dimen/text_18" /> + + <!--3.鏇村鎸夐挳 榛樿闅愯棌--> + <LinearLayout + android:id="@+id/top_more_btn" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_alignParentEnd="true" + android:gravity="center_vertical" + android:orientation="horizontal" + android:src="@drawable/add" + android:visibility="gone"> + + <ImageView + android:id="@+id/top_more_iv" + android:layout_width="@dimen/dp_28" + android:layout_height="@dimen/dp_28" + android:layout_marginStart="20dp" + android:layout_marginEnd="20dp" + android:adjustViewBounds="true" + android:scaleType="centerInside" /> + + </LinearLayout> + + </RelativeLayout> + </RelativeLayout> <androidx.core.widget.NestedScrollView android:layout_width="0dp" @@ -19,7 +88,7 @@ app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/toolbar_top_rl"> + app:layout_constraintTop_toBottomOf="@+id/top_bar_view"> <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent" @@ -41,20 +110,28 @@ android:layout_height="@dimen/dp_20" android:layout_marginTop="@dimen/dp_12" android:text="@string/app_version_number" - android:textColor="@color/text_030D1C" + android:textColor="@color/text_E6FFFFFF" android:textSize="@dimen/text_14" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/as_regards_icon_iv" /> - <ImageView - android:id="@+id/as_regards_qr_code_iv" - android:layout_width="168dp" - android:layout_height="168dp" - android:layout_marginTop="@dimen/dp_34" + <RelativeLayout + android:id="@+id/qr_code_box" + android:layout_width="180dp" + android:layout_height="180dp" + android:layout_marginTop="34dp" + android:background="@drawable/code_box" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/as_regards_icon_versions_tv" /> + app:layout_constraintTop_toBottomOf="@+id/as_regards_icon_versions_tv"> + + <ImageView + android:id="@+id/as_regards_qr_code_iv" + android:layout_width="168dp" + android:layout_height="168dp" + android:layout_centerInParent="true" /> + </RelativeLayout> <TextView android:id="@+id/as_regards_download_app_tv" @@ -62,18 +139,18 @@ android:layout_height="@dimen/dp_20" android:layout_marginTop="@dimen/dp_12" android:text="@string/app_scan_code_download" - android:textColor="@color/text_030D1C" + android:textColor="@color/text_E6FFFFFF" android:textSize="@dimen/text_14" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/as_regards_qr_code_iv" /> + app:layout_constraintTop_toBottomOf="@+id/qr_code_box" /> <!--鐗堟湰鏇存柊--> <RelativeLayout android:id="@+id/as_regards_version_updating_rl" android:layout_width="match_parent" android:layout_height="@dimen/dp_57" android:layout_marginTop="@dimen/dp_29" - android:background="@color/text_FFFFFFFF" + android:background="@color/text_FF333738" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/as_regards_download_app_tv"> @@ -85,8 +162,8 @@ android:layout_centerVertical="true" android:layout_marginStart="@dimen/dp_16" android:text="@string/app_version_upgrade" - android:textColor="@color/text_030D1C" - android:textSize="@dimen/text_15" + android:textColor="@color/text_E6FFFFFF" + android:textSize="@dimen/text_14" /> @@ -113,8 +190,14 @@ android:layout_marginEnd="@dimen/dp_9" android:layout_toStartOf="@+id/as_regards_version_updating_ll" android:text="@string/app_new_version" - android:textColor="@color/text_7C8590" - android:textSize="@dimen/text_15" /> + android:textColor="@color/text_66FFFFFF" + android:textSize="@dimen/text_14" /> + + <View + android:layout_width="match_parent" + android:layout_height="0.5dp" + android:layout_alignParentBottom="true" + android:background="@color/text_1AFFFFFF" /> </RelativeLayout> <!--鏈嶅姟鍗忚--> @@ -122,7 +205,7 @@ android:id="@+id/service_agreement_rl" android:layout_width="match_parent" android:layout_height="@dimen/dp_57" - android:background="@color/text_FFFFFFFF" + android:background="@color/text_FF333738" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/as_regards_version_updating_rl"> @@ -134,8 +217,8 @@ android:layout_centerVertical="true" android:layout_marginStart="@dimen/dp_16" android:text="@string/app_service_agreement" - android:textColor="@color/text_030D1C" - android:textSize="@dimen/text_15" + android:textColor="@color/text_E6FFFFFF" + android:textSize="@dimen/text_14" /> @@ -154,14 +237,18 @@ android:src="@drawable/next" /> </LinearLayout> - + <View + android:layout_width="match_parent" + android:layout_height="0.5dp" + android:layout_alignParentBottom="true" + android:background="@color/text_1AFFFFFF" /> </RelativeLayout> <!--闅愮鏀跨瓥--> <RelativeLayout android:id="@+id/privacy_policy_rl" android:layout_width="match_parent" android:layout_height="@dimen/dp_57" - android:background="@color/text_FFFFFFFF" + android:background="@color/text_FF333738" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/service_agreement_rl"> @@ -173,8 +260,8 @@ android:layout_centerVertical="true" android:layout_marginStart="@dimen/dp_16" android:text="@string/app_privacy_policy" - android:textColor="@color/text_030D1C" - android:textSize="@dimen/text_15" + android:textColor="@color/text_E6FFFFFF" + android:textSize="@dimen/text_14" /> @@ -193,6 +280,11 @@ android:src="@drawable/next" /> </LinearLayout> + <View + android:layout_width="match_parent" + android:layout_height="0.5dp" + android:layout_alignParentBottom="true" + android:background="@color/text_1AFFFFFF" /> </RelativeLayout> <!--鑱旂郴鎴戜滑--> @@ -200,7 +292,7 @@ android:id="@+id/contact_us_rl" android:layout_width="match_parent" android:layout_height="@dimen/dp_57" - android:background="@color/text_FFFFFFFF" + android:background="@color/text_FF333738" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/privacy_policy_rl"> @@ -212,8 +304,8 @@ android:layout_centerVertical="true" android:layout_marginStart="@dimen/dp_16" android:text="@string/contact_us" - android:textColor="@color/text_030D1C" - android:textSize="@dimen/text_15" + android:textColor="@color/text_E6FFFFFF" + android:textSize="@dimen/text_14" /> -- Gitblit v1.8.0