2023-06-29 10:15:24 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2023-07-11 10:51:03 +08:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2023-06-29 10:15:24 +08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:animateLayoutChanges="true"
|
2023-06-30 10:17:33 +08:00
|
|
|
android:background="@mipmap/background_red_packet"
|
2023-06-29 10:15:24 +08:00
|
|
|
android:backgroundTintMode="src_over">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginTop="171dp"
|
|
|
|
android:background="@mipmap/icon_ellipse" />
|
|
|
|
<!--头像-->
|
|
|
|
<com.yunbao.common.views.weight.ClipPathCircleImage
|
|
|
|
android:id="@+id/head_portrait"
|
|
|
|
android:layout_width="59dp"
|
|
|
|
android:layout_height="59dp"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:layout_marginTop="40dp"
|
|
|
|
android:src="@mipmap/hide" />
|
|
|
|
|
2023-06-30 10:17:33 +08:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/is_attention"
|
|
|
|
android:layout_width="23dp"
|
|
|
|
android:layout_height="23dp"
|
2023-06-29 10:15:24 +08:00
|
|
|
android:layout_below="@id/head_portrait"
|
|
|
|
android:layout_centerHorizontal="true"
|
2023-06-30 10:17:33 +08:00
|
|
|
android:layout_marginTop="-17dp"
|
|
|
|
android:src="@mipmap/ixon_attention" />
|
2023-06-29 10:15:24 +08:00
|
|
|
|
|
|
|
<LinearLayout
|
2023-06-30 10:17:33 +08:00
|
|
|
android:id="@+id/receive_red_layout"
|
2023-06-29 10:15:24 +08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2023-06-30 10:17:33 +08:00
|
|
|
android:layout_below="@id/head_portrait"
|
2023-06-29 10:15:24 +08:00
|
|
|
android:layout_centerHorizontal="true"
|
2023-06-30 10:17:33 +08:00
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:orientation="vertical">
|
2023-06-29 10:15:24 +08:00
|
|
|
|
|
|
|
<TextView
|
2023-06-30 10:17:33 +08:00
|
|
|
android:id="@+id/receive_red"
|
2023-06-29 10:15:24 +08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2023-06-30 10:17:33 +08:00
|
|
|
android:layout_marginStart="20dp"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:layout_marginEnd="20dp"
|
|
|
|
android:gravity="center"
|
2024-10-23 16:13:01 +08:00
|
|
|
android:text="來自小熊的獎勵,齊心協力連成目標"
|
2023-06-29 10:15:24 +08:00
|
|
|
android:textColor="@color/white"
|
2023-06-30 10:17:33 +08:00
|
|
|
android:textSize="13sp"
|
|
|
|
android:textStyle="bold" />
|
2023-06-29 10:15:24 +08:00
|
|
|
|
2023-06-30 10:17:33 +08:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/red_packet_value_layout"
|
2023-06-29 10:15:24 +08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2023-06-30 10:17:33 +08:00
|
|
|
android:layout_below="@id/receive_red"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:gravity="center_vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/red_packet_value"
|
|
|
|
android:textColor="@color/white"
|
|
|
|
android:textSize="12sp" />
|
|
|
|
|
|
|
|
<ImageView
|
2024-05-05 16:13:28 +08:00
|
|
|
android:id="@+id/value_icon"
|
2023-06-30 10:17:33 +08:00
|
|
|
android:layout_width="16dp"
|
|
|
|
android:layout_height="14dp"
|
|
|
|
android:layout_marginStart="15dp"
|
|
|
|
android:src="@mipmap/icon_zhuansi" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/red_packet_value"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:text="13160"
|
|
|
|
android:textColor="@color/white"
|
|
|
|
android:textSize="12sp" />
|
|
|
|
</LinearLayout>
|
2023-06-29 10:15:24 +08:00
|
|
|
</LinearLayout>
|
|
|
|
|
2023-06-30 10:17:33 +08:00
|
|
|
|
2023-06-29 10:15:24 +08:00
|
|
|
<Button
|
|
|
|
android:id="@+id/red_packet_open"
|
|
|
|
android:layout_width="96dp"
|
|
|
|
android:layout_height="96dp"
|
2023-06-30 10:17:33 +08:00
|
|
|
android:layout_below="@+id/head_portrait"
|
2023-06-29 10:15:24 +08:00
|
|
|
android:layout_centerHorizontal="true"
|
2023-06-30 10:17:33 +08:00
|
|
|
android:layout_marginTop="68dp"
|
2023-06-29 10:15:24 +08:00
|
|
|
android:background="@drawable/background_open_red_packet"
|
|
|
|
android:text="@string/red_packet_open"
|
|
|
|
android:textColor="#FFE9BF"
|
2023-07-11 10:51:03 +08:00
|
|
|
android:textSize="26sp"
|
2023-06-29 10:15:24 +08:00
|
|
|
android:textStyle="bold"
|
2023-07-11 10:51:03 +08:00
|
|
|
android:visibility="invisible"
|
|
|
|
tools:visibility="visible" />
|
2023-06-29 10:15:24 +08:00
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/red_packet_time_layout"
|
|
|
|
android:layout_width="96dp"
|
|
|
|
android:layout_height="96dp"
|
2023-06-30 10:17:33 +08:00
|
|
|
android:layout_below="@+id/head_portrait"
|
2023-06-29 10:15:24 +08:00
|
|
|
android:layout_centerHorizontal="true"
|
2023-06-30 10:17:33 +08:00
|
|
|
android:layout_marginTop="68dp">
|
2023-06-29 10:15:24 +08:00
|
|
|
|
|
|
|
<com.yunbao.common.views.weight.CircleProgress
|
|
|
|
android:id="@+id/circleProgress"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/red_packet_time_text"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
2023-06-30 10:17:33 +08:00
|
|
|
android:text="00:00"
|
2023-06-29 10:15:24 +08:00
|
|
|
android:textColor="#FFFFF9"
|
|
|
|
android:textSize="36sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/red_packet_list"
|
|
|
|
android:layout_width="260dp"
|
|
|
|
android:layout_height="45dp"
|
|
|
|
android:layout_below="@id/red_packet_open"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:layout_marginTop="26dp"
|
|
|
|
android:background="@drawable/background_red_packet_list"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
2023-06-30 10:17:33 +08:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/red_packet_gift_list"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginEnd="14dp" />
|
|
|
|
|
2023-06-29 10:15:24 +08:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<TextView
|
2024-05-05 16:13:28 +08:00
|
|
|
android:id="@+id/tips"
|
2023-06-29 10:15:24 +08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/red_packet_list"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:layout_marginTop="27dp"
|
|
|
|
android:text="@string/randomly_available"
|
|
|
|
android:textColor="@color/white"
|
|
|
|
android:textSize="12sp" />
|
|
|
|
</RelativeLayout>
|