From 879ec1ae04b37eb7bf9357903d10acc860d84d5b Mon Sep 17 00:00:00 2001
From: zhujie <leon.zhu@cloudroam.com.cn>
Date: 星期二, 15 四月 2025 03:02:18 +0800
Subject: [PATCH] 1
---
app/src/main/res/layout/activity_invitation_main.xml | 50 ++++++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 46 insertions(+), 4 deletions(-)
diff --git a/app/src/main/res/layout/activity_invitation_main.xml b/app/src/main/res/layout/activity_invitation_main.xml
index e92d712..88a6273 100644
--- a/app/src/main/res/layout/activity_invitation_main.xml
+++ b/app/src/main/res/layout/activity_invitation_main.xml
@@ -63,7 +63,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
- app:cardCornerRadius="8dp">
+ app:cardCornerRadius="18dp">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/invitationsuccessRecyclerView"
@@ -75,9 +75,10 @@
<!-- 邀请按钮区域 -->
<Button
+ android:id="@+id/btnInvite"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginBottom="26dp"
+ android:layout_marginBottom="10dp"
android:backgroundTint="#FF0000"
android:insetTop="0dp"
android:insetBottom="0dp"
@@ -86,6 +87,47 @@
android:textColor="#FFFFFF"
android:textSize="16sp"
app:cornerRadius="10dp" />
+
+ <!-- 邀请码区域 -->
+ <androidx.cardview.widget.CardView
+ android:layout_width="match_parent"
+ android:layout_height="50dp"
+ android:layout_marginBottom="8dp"
+ app:cardCornerRadius="8dp"
+ app:cardPreventCornerOverlap="true"
+ app:cardElevation="0dp"
+ app:cardBackgroundColor="#FFFFFF">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="horizontal"
+ android:paddingStart="16dp"
+ android:paddingEnd="16dp"
+ android:gravity="center_vertical">
+
+ <TextView
+ android:id="@+id/invitationCodeText"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:text="A1B2"
+ android:textAlignment="center"
+ android:textColor="#000000"
+ android:textSize="30sp" />
+
+ <Button
+ android:id="@+id/copyButton"
+ android:layout_width="wrap_content"
+ android:layout_height="40dp"
+ android:text="复制邀请码"
+ android:textColor="#FF0000"
+ android:backgroundTint="#FFFFFF"
+ android:textSize="12sp"
+ android:paddingStart="12dp"
+ android:paddingEnd="12dp"/>
+ </LinearLayout>
+ </androidx.cardview.widget.CardView>
<!-- 邀请任务表格区域 -->
<androidx.cardview.widget.CardView
@@ -178,7 +220,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="6dp"
- android:text="免广告特权 (7天)"
+ android:text="15天会员"
android:textAlignment="center"
android:textColor="#333333"
android:textSize="12sp" />
@@ -208,7 +250,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="6dp"
- android:text="7天会员"
+ android:text="30天会员"
android:textAlignment="center"
android:textColor="#333333"
android:textSize="12sp" />
--
Gitblit v1.9.3