|
@@ -0,0 +1,180 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools">
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ android:background="@drawable/shape_161722_top_20"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+ <com.swago.baseswago.cusview.MediumTextView
|
|
|
+ android:id="@+id/tvRuleTitle"
|
|
|
+ android:textSize="16dp"
|
|
|
+ android:textColor="#fff"
|
|
|
+ android:text="幸运红包规则"
|
|
|
+ android:layout_marginTop="9dp"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/ivBack"
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:src="@mipmap/back_white"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ android:layout_width="20dp"
|
|
|
+ android:layout_height="20dp"/>
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:visibility="gone"
|
|
|
+ android:background="@drawable/shape_161722_top_20"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+
|
|
|
+ <com.swago.baseswago.cusview.MediumTextView
|
|
|
+ android:id="@+id/tvTitle"
|
|
|
+ android:textSize="16dp"
|
|
|
+ android:textColor="#fff"
|
|
|
+ android:text="幸运红包"
|
|
|
+ android:layout_marginTop="9dp"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/ivHelp"
|
|
|
+ android:layout_marginEnd="16dp"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:src="@mipmap/icon_help"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ android:layout_width="20dp"
|
|
|
+ android:layout_height="20dp"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tvSum"
|
|
|
+ android:text="金币总数"
|
|
|
+ android:textColor="#99FFFFFF"
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
+ android:layout_marginTop="64dp"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatEditText
|
|
|
+ android:id="@+id/etInputCoin"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tvSum"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ android:layout_marginTop="7dp"
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
+ android:layout_marginEnd="16dp"
|
|
|
+ android:paddingStart="12dp"
|
|
|
+ android:textSize="14dp"
|
|
|
+ android:textColor="#fff"
|
|
|
+ android:textColorHint="#99FFFFFF"
|
|
|
+ android:hint="不少于1000金币"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:drawablePadding="8dp"
|
|
|
+ android:drawableStart="@mipmap/icon_envelope_num"
|
|
|
+ android:background="@drawable/shape_1affffff_all_12"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="48dp"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tvEnvelope"
|
|
|
+ android:text="红包个数"
|
|
|
+ android:textColor="#99FFFFFF"
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/etInputCoin"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatEditText
|
|
|
+ android:id="@+id/etInputCount"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tvEnvelope"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ android:layout_marginTop="7dp"
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
+ android:layout_marginEnd="16dp"
|
|
|
+ android:paddingStart="12dp"
|
|
|
+ android:textSize="14dp"
|
|
|
+ android:textColor="#fff"
|
|
|
+ android:textColorHint="#99FFFFFF"
|
|
|
+ android:hint="最少5个红包"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:drawablePadding="8dp"
|
|
|
+ android:drawableStart="@mipmap/icon_person_num"
|
|
|
+ android:background="@drawable/shape_1affffff_all_12"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="48dp"/>
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tvDescribe"
|
|
|
+ android:text="当红包总金额>=20000时,还会全平台广播通知哦"
|
|
|
+ android:textColor="#99FFFFFF"
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
+ android:layout_marginEnd="16dp"
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/etInputCount"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tvNotEnough"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tvDescribe"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:textSize="12dp"
|
|
|
+ android:textColor="#FFD917"
|
|
|
+ android:text="金币总数不满足要求"
|
|
|
+ android:visibility="gone"
|
|
|
+ tools:visibility="visible"
|
|
|
+ android:drawableStart="@mipmap/icon_red_envelope_not_enough_coin"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+
|
|
|
+
|
|
|
+ <com.swago.baseswago.cusview.BoldTextView
|
|
|
+ android:id="@+id/tvSendRedEnvelope"
|
|
|
+ android:text="发红包"
|
|
|
+ android:textColor="#fff"
|
|
|
+ android:textSize="16dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:layout_marginBottom="25dp"
|
|
|
+ android:background="@drawable/shape_80ff56b7_all_38"
|
|
|
+ android:layout_marginStart="15dp"
|
|
|
+ android:layout_marginEnd="15dp"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/etInputCount"
|
|
|
+ android:layout_marginTop="85dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="44dp"/>
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|