From ef4ad6195ba5cf2e61e50c86b735a65aec63b4e9 Mon Sep 17 00:00:00 2001 From: tj <1378534974@qq.com> Date: 星期五, 28 三月 2025 15:00:21 +0800 Subject: [PATCH] 1.vip续费页面-会员权益 2.vip续费页面-更多权益 3.vip续费页面-付费面板 --- app/src/main/res/layout/item_card_yearly.xml | 58 ++++++++++++++++++++++++++++++++++++++++++++++------------ 1 files changed, 46 insertions(+), 12 deletions(-) diff --git a/app/src/main/res/layout/item_card_yearly.xml b/app/src/main/res/layout/item_card_yearly.xml index d07e1ec..b7b61fa 100644 --- a/app/src/main/res/layout/item_card_yearly.xml +++ b/app/src/main/res/layout/item_card_yearly.xml @@ -3,7 +3,8 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="160dp" android:layout_height="wrap_content" - android:layout_margin="8dp" + android:layout_marginTop="10dp" + android:layout_marginRight="10dp" android:background="@android:color/transparent" app:cardBackgroundColor="@android:color/transparent" app:cardElevation="0dp" @@ -14,7 +15,7 @@ xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" - android:layout_height="140dp" + android:layout_height="wrap_content" android:layout_marginTop="10dp" app:cardCornerRadius="16dp" android:foreground="@drawable/gray_border_shape" @@ -25,10 +26,10 @@ <LinearLayout android:layout_width="match_parent" - android:layout_height="wrap_content" + android:layout_height="100dp" android:orientation="vertical" android:gravity="center" - android:padding="16dp"> + android:padding="0dp"> <TextView android:id="@+id/yearly_title_text" @@ -39,24 +40,56 @@ android:textColor="#F9EBC6" android:layout_marginTop="8dp"/> + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + <TextView + android:id="@+id/yearly_price_tag" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="¥" + android:textSize="20sp" + android:textColor="#F9EBC6" + android:layout_marginTop="2dp"/> + <TextView + android:id="@+id/yearly_price_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="108" + android:textSize="20sp" + android:textColor="#F9EBC6" + android:layout_marginTop="2dp"/> + <TextView + android:id="@+id/yearly_price_unit" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="/年" + android:textSize="20sp" + android:textColor="#F9EBC6" + android:layout_marginTop="2dp"/> + </LinearLayout> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content"> <TextView - android:id="@+id/yearly_price_text" + android:id="@+id/yearly_original_price_tag" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="¥108/年" - android:textSize="30sp" - android:textColor="#F9EBC6" - android:layout_marginTop="8dp"/> - + android:text="¥" + android:textSize="12sp" + android:textColor="#CCCCCC" + android:layout_marginTop="2dp"/> <TextView android:id="@+id/yearly_original_price_text" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="¥168" + android:text="168" android:textSize="12sp" android:textColor="#CCCCCC" - android:layout_marginTop="4dp" + android:layout_marginTop="2dp" /> + </LinearLayout> </LinearLayout> @@ -74,6 +107,7 @@ android:text="折合9元/月" android:textColor="#FFFFFF" android:padding="4dp" + android:textSize="10sp" android:elevation="4dp" android:background="@drawable/round_red_bg" /> -- Gitblit v1.9.3