From 4e0525287189ead2b40d86cde62d96890db1389b Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期一, 31 三月 2025 09:02:03 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- app/src/main/res/layout/item_card_continue_monthly.xml | 163 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 163 insertions(+), 0 deletions(-) diff --git a/app/src/main/res/layout/item_card_continue_monthly.xml b/app/src/main/res/layout/item_card_continue_monthly.xml new file mode 100644 index 0000000..6e7cb52 --- /dev/null +++ b/app/src/main/res/layout/item_card_continue_monthly.xml @@ -0,0 +1,163 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="240dp" + android:layout_height="wrap_content" + android:layout_marginTop="10dp" + android:layout_marginRight="10dp" + android:background="@android:color/transparent" + app:cardBackgroundColor="@android:color/transparent" + app:cardElevation="0dp" + app:cardUseCompatPadding="false" + > + + <androidx.cardview.widget.CardView + android:id="@+id/vip_first_month_card_view" + 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="100dp" + android:layout_marginTop="10dp" + app:cardCornerRadius="16dp" + android:foreground="@drawable/gold_border_shape" + app:cardBackgroundColor="@android:color/transparent" + app:cardElevation="0dp" + app:cardUseCompatPadding="false"> + + + <androidx.constraintlayout.widget.ConstraintLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="5dp" + android:paddingStart="15dp" + android:background="@android:color/transparent"> + + <!-- Title Text --> + <TextView + android:id="@+id/title_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="连续包月" + android:textSize="18sp" + android:textColor="#F9EBC6" + + android:background="@android:color/transparent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintStart_toStartOf="parent" /> + + <!-- Subtitle Text --> + <TextView + android:id="@+id/sub_title_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="首次开通" + android:textSize="10dp" + android:textColor="#CCCCCC" + android:paddingStart="5dp" + android:paddingTop="2dp" + android:paddingEnd="5dp" + android:paddingBottom="2dp" + android:background="@drawable/round_transition_gray_bg" + app:layout_constraintTop_toBottomOf="@id/title_text" + app:layout_constraintStart_toStartOf="parent" + android:layout_marginStart="85dp" + android:layout_marginTop="-20dp" + /> + + <!-- Price Text --> + <TextView + android:id="@+id/price_text_tag" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="¥" + android:textSize="20sp" + android:textColor="#F9EBC6" + android:layout_marginTop="10dp" + android:layout_marginLeft="135dp" + android:background="@android:color/transparent" + app:layout_constraintTop_toBottomOf="@id/sub_title_text" + app:layout_constraintStart_toStartOf="parent" /> + <TextView + android:id="@+id/price_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="9.9" + android:textSize="30sp" + android:textColor="#F9EBC6" + android:layout_marginTop="0dp" + android:layout_marginLeft="150dp" + android:background="@android:color/transparent" + app:layout_constraintTop_toBottomOf="@id/sub_title_text" + app:layout_constraintStart_toStartOf="parent" /> + + <!-- Next Price Text --> + <TextView + android:id="@+id/next_price_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="次月起12元/月" + android:textSize="14sp" + android:textColor="#CCCCCC" + android:layout_marginTop="10dp" + android:background="@android:color/transparent" + app:layout_constraintTop_toBottomOf="@id/title_text" + app:layout_constraintStart_toStartOf="parent" /> + + <!-- Auto Renew Text --> + <TextView + android:id="@+id/auto_renew_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="自动续费可随时取消" + android:textSize="12sp" + android:textColor="#CCCCCC" + android:layout_marginTop="4dp" + android:background="@android:color/transparent" + app:layout_constraintTop_toBottomOf="@id/next_price_text" + app:layout_constraintStart_toStartOf="parent" /> + +<!-- <TextView--> +<!-- android:id="@+id/auto_renew_text2"--> +<!-- android:layout_width="wrap_content"--> +<!-- android:layout_height="wrap_content"--> +<!-- android:text="活动须知"--> +<!-- android:textSize="12sp"--> +<!-- android:textColor="#CCCCCC"--> +<!-- android:layout_marginTop="4dp"--> +<!-- android:background="@android:color/transparent"--> +<!-- app:layout_constraintTop_toBottomOf="@id/auto_renew_text"--> +<!-- app:layout_constraintStart_toStartOf="parent" />--> +<!-- <TextView--> +<!-- android:id="@+id/auto_renew_text3"--> +<!-- android:layout_width="wrap_content"--> +<!-- android:layout_height="wrap_content"--> +<!-- android:text=">"--> +<!-- android:textSize="16sp"--> +<!-- android:textColor="#CCCCCC"--> +<!-- android:layout_marginTop="0dp"--> +<!-- android:background="@android:color/transparent"--> +<!-- android:layout_marginLeft="60dp"--> +<!-- app:layout_constraintTop_toBottomOf="@id/auto_renew_text"--> +<!-- app:layout_constraintStart_toStartOf="parent" />--> + + </androidx.constraintlayout.widget.ConstraintLayout> + + + +</androidx.cardview.widget.CardView> + <TextView + android:id="@+id/first_month_tag" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="0dp" + android:layout_marginRight="5dp" + android:scaleType="centerCrop" + android:layout_gravity="end|top" + android:text="首月限时特惠" + android:textColor="#FFFFFF" + android:padding="4dp" + android:elevation="4dp" + android:textSize="10sp" + android:background="@drawable/round_red_bg" + /> +</androidx.cardview.widget.CardView> \ No newline at end of file -- Gitblit v1.9.3