| | |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginBottom="20dp" |
| | | app:cardCornerRadius="18dp"> |
| | | app:cardCornerRadius="38dp"> |
| | | |
| | | <androidx.recyclerview.widget.RecyclerView |
| | | android:id="@+id/invitationsuccessRecyclerView" |
| | |
| | | android:layout_width="match_parent" |
| | | android:layout_height="50dp" |
| | | android:layout_marginBottom="8dp" |
| | | app:cardBackgroundColor="#FFFFFF" |
| | | app:cardCornerRadius="8dp" |
| | | app:cardPreventCornerOverlap="true" |
| | | app:cardElevation="0dp" |
| | | app:cardBackgroundColor="#FFFFFF"> |
| | | app:cardPreventCornerOverlap="true"> |
| | | |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | android:gravity="center_vertical" |
| | | android:orientation="horizontal" |
| | | android:paddingStart="16dp" |
| | | android:paddingEnd="16dp" |
| | | android:gravity="center_vertical"> |
| | | android:paddingEnd="16dp"> |
| | | |
| | | <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" |
| | | style="?android:attr/borderlessButtonStyle" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="40dp" |
| | | android:text="复制邀请码" |
| | | android:textColor="#FF0000" |
| | | android:backgroundTint="#FFFFFF" |
| | | android:textSize="12sp" |
| | | android:background="@android:color/transparent" |
| | | android:paddingStart="12dp" |
| | | android:paddingEnd="12dp"/> |
| | | android:paddingEnd="12dp" |
| | | android:stateListAnimator="@null" |
| | | android:text="复制邀请码" |
| | | android:textColor="#FF0000FF" |
| | | android:textSize="13sp" /> |
| | | </LinearLayout> |
| | | </androidx.cardview.widget.CardView> |
| | | |
| | |
| | | app:cardCornerRadius="6dp" |
| | | app:cardPreventCornerOverlap="true"> |
| | | |
| | | <TableLayout |
| | | android:id="@+id/tableLayout" |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:background="@drawable/table_border" |
| | | android:shrinkColumns="*" |
| | | android:stretchColumns="*"> |
| | | android:orientation="vertical"> |
| | | |
| | | <TableRow> |
| | | <!-- 添加"邀请任务"标题 --> |
| | | <TextView |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:paddingLeft="16dp" |
| | | android:paddingBottom="8dp" |
| | | android:text="邀请任务" |
| | | android:textColor="#333333" |
| | | android:textSize="16sp" |
| | | android:textStyle="bold" /> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:padding="6dp" |
| | | android:text="邀请人数" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | <!-- 表格区域 --> |
| | | <TableLayout |
| | | android:id="@+id/tableLayout" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:background="@drawable/table_border" |
| | | android:paddingLeft="16dp" |
| | | android:paddingRight="16dp" |
| | | android:paddingBottom="16dp" |
| | | android:shrinkColumns="*" |
| | | android:stretchColumns="*"> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:padding="6dp" |
| | | android:text="邀请奖励" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | <TableRow android:background="@drawable/table_cell_border"> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:padding="6dp" |
| | | android:text="被邀请人奖励" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | </TableRow> |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:background="@drawable/table_cell_border" |
| | | android:text="邀请人数" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | |
| | | <TableRow> |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:background="@drawable/table_cell_border" |
| | | android:text="邀请奖励" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:padding="6dp" |
| | | android:text="1人" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:background="@drawable/table_cell_border" |
| | | android:text="被邀请人奖励" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | </TableRow> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:padding="6dp" |
| | | android:text="3天会员" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | <TableRow android:background="@drawable/table_cell_border"> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:padding="6dp" |
| | | android:text="1天会员" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | </TableRow> |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:background="@drawable/table_cell_border" |
| | | android:text="1人" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | |
| | | <TableRow> |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:background="@drawable/table_cell_border" |
| | | android:text="3天会员" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:padding="6dp" |
| | | android:text="3人" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:background="@drawable/table_cell_border" |
| | | android:text="1天会员" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | </TableRow> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:padding="6dp" |
| | | android:text="15天会员" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | <TableRow android:background="@drawable/table_cell_border"> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:padding="6dp" |
| | | android:text="1天会员" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | </TableRow> |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:background="@drawable/table_cell_border" |
| | | android:text="3人" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | |
| | | <TableRow> |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:background="@drawable/table_cell_border" |
| | | android:text="15天会员" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:padding="6dp" |
| | | android:text="5人" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:background="@drawable/table_cell_border" |
| | | android:text="1天会员" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | </TableRow> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:padding="6dp" |
| | | android:text="30天会员" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | <TableRow android:background="@drawable/table_cell_border"> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:padding="6dp" |
| | | android:text="1天会员" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | </TableRow> |
| | | </TableLayout> |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:background="@drawable/table_cell_border" |
| | | android:text="5人" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:background="@drawable/table_cell_border" |
| | | android:text="30天会员" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:background="@drawable/table_cell_border" |
| | | android:text="1天会员" |
| | | android:textAlignment="center" |
| | | android:textColor="#333333" |
| | | android:textSize="12sp" /> |
| | | </TableRow> |
| | | </TableLayout> |
| | | </LinearLayout> |
| | | </androidx.cardview.widget.CardView> |
| | | |
| | | <!-- 邀请记录区域 --> |
| | |
| | | android:layout_marginBottom="20dp" |
| | | app:cardCornerRadius="6dp" |
| | | app:cardPreventCornerOverlap="true"> |
| | | <androidx.recyclerview.widget.RecyclerView |
| | | android:id="@+id/invitationrecordRecyclerView" |
| | | |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:nestedScrollingEnabled="false" |
| | | android:overScrollMode="never" /> |
| | | android:orientation="vertical"> |
| | | |
| | | <!-- 添加"我的邀请记录"标题 --> |
| | | <TextView |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:paddingLeft="16dp" |
| | | android:paddingBottom="8dp" |
| | | android:text="我的邀请记录" |
| | | android:textColor="#333333" |
| | | android:textSize="16sp" |
| | | android:textStyle="bold" |
| | | android:gravity="center" /> |
| | | |
| | | <androidx.recyclerview.widget.RecyclerView |
| | | android:id="@+id/invitationrecordRecyclerView" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:nestedScrollingEnabled="false" |
| | | android:overScrollMode="never" /> |
| | | </LinearLayout> |
| | | </androidx.cardview.widget.CardView> |
| | | |
| | | <!-- 添加一个权重为1的View,用于填充剩余空间 --> |