创建接口,红包展示接口
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@mipmap/background_red_packet"
|
||||
android:animateLayoutChanges="true"
|
||||
android:background="@mipmap/background_red_packet"
|
||||
android:backgroundTintMode="src_over">
|
||||
|
||||
<ImageView
|
||||
@@ -21,56 +21,78 @@
|
||||
android:layout_marginTop="40dp"
|
||||
android:src="@mipmap/hide" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/receive_red"
|
||||
<ImageView
|
||||
android:id="@+id/is_attention"
|
||||
android:layout_width="23dp"
|
||||
android:layout_height="23dp"
|
||||
android:layout_below="@id/head_portrait"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="-17dp"
|
||||
android:src="@mipmap/ixon_attention" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/receive_red_layout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/head_portrait"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="20dp"
|
||||
android:text="來自小PD的獎勵,齊心協力連成目標"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/red_packet_value_layout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/receive_red"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="6dp"
|
||||
android:gravity="center_vertical">
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/receive_red"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/red_packet_value"
|
||||
android:layout_marginStart="20dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:gravity="center"
|
||||
android:text="來自小PD的獎勵,齊心協力連成目標"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp" />
|
||||
android:textSize="13sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginStart="15dp"
|
||||
android:src="@mipmap/icon_zhuansi" />
|
||||
|
||||
<TextView
|
||||
<LinearLayout
|
||||
android:id="@+id/red_packet_value_layout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:text="13160"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp" />
|
||||
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
|
||||
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>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<Button
|
||||
android:id="@+id/red_packet_open"
|
||||
android:layout_width="96dp"
|
||||
android:layout_height="96dp"
|
||||
android:layout_below="@+id/red_packet_value_layout"
|
||||
android:layout_below="@+id/head_portrait"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginTop="68dp"
|
||||
android:background="@drawable/background_open_red_packet"
|
||||
android:text="@string/red_packet_open"
|
||||
android:textColor="#FFE9BF"
|
||||
@@ -82,9 +104,9 @@
|
||||
android:id="@+id/red_packet_time_layout"
|
||||
android:layout_width="96dp"
|
||||
android:layout_height="96dp"
|
||||
android:layout_below="@+id/red_packet_value_layout"
|
||||
android:layout_below="@+id/head_portrait"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="12dp">
|
||||
android:layout_marginTop="68dp">
|
||||
|
||||
<com.yunbao.common.views.weight.CircleProgress
|
||||
android:id="@+id/circleProgress"
|
||||
@@ -96,7 +118,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:text="0"
|
||||
android:text="00:00"
|
||||
android:textColor="#FFFFF9"
|
||||
android:textSize="36sp"
|
||||
android:textStyle="bold" />
|
||||
@@ -112,6 +134,12 @@
|
||||
android:background="@drawable/background_red_packet_list"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<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" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -15,16 +15,18 @@
|
||||
app:cardElevation="0dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/red_packet_countdown"
|
||||
android:layout_width="58dp"
|
||||
android:layout_height="16dp"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingStart="5dp"
|
||||
android:text="倒計時04:59"
|
||||
android:text="@string/red_packet_countdown"
|
||||
android:visibility="gone"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="9sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/red_packet_queue"
|
||||
android:layout_width="68dp"
|
||||
android:layout_height="27dp"
|
||||
android:gravity="center_vertical"
|
||||
@@ -33,6 +35,7 @@
|
||||
android:visibility="visible">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/red_schedule"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="10/200"
|
||||
@@ -40,6 +43,7 @@
|
||||
android:textSize="9sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/open_red_packet"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="待開紅包:4"
|
||||
|
||||
23
live/src/main/res/layout/view_red_packet_gift.xml
Normal file
23
live/src/main/res/layout/view_red_packet_gift.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/gift_icon"
|
||||
android:layout_marginStart="14dp"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:src="@mipmap/hide" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/gift_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="3dp"
|
||||
android:text="dadsad"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="14sp" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -200,6 +200,7 @@
|
||||
</FrameLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/red_pack_send"
|
||||
android:layout_width="160dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_gravity="center_horizontal|bottom"
|
||||
|
||||
BIN
live/src/main/res/mipmap-xhdpi/ixon_attention.png
Normal file
BIN
live/src/main/res/mipmap-xhdpi/ixon_attention.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
Reference in New Issue
Block a user