pdlivexp/live/src/main/res/layout/view_send_red_packet.xml

342 lines
13 KiB
XML
Raw Normal View History

2023-06-26 18:04:58 +08:00
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:animateLayoutChanges="true"
2023-06-26 18:04:58 +08:00
android:background="@mipmap/background_red_packet"
android:backgroundTintMode="src_over">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="45dp"
android:text="@string/save_popular_red_packets"
android:textColor="@color/white"
android:textSize="18sp"
android:textStyle="bold" />
<ImageView
android:id="@+id/icon_instructions"
2023-06-26 18:04:58 +08:00
android:layout_width="19dp"
android:layout_height="19dp"
android:layout_gravity="end"
android:layout_marginTop="28dp"
android:layout_marginEnd="21dp"
android:src="@mipmap/icon_instructions" />
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
2023-07-11 14:14:33 +08:00
android:layout_marginStart="23dp"
2023-06-26 18:04:58 +08:00
android:layout_marginTop="97dp"
2023-07-11 14:14:33 +08:00
android:layout_marginEnd="29dp"
2023-06-26 18:04:58 +08:00
app:cardBackgroundColor="#E82936"
app:cardCornerRadius="8dp"
app:cardElevation="0dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="35dp"
android:gravity="center_vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="23dp"
android:text="@string/amount"
android:textColor="@color/white"
android:textSize="15sp" />
<EditText
android:id="@+id/rill"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@null"
android:gravity="center"
android:inputType="number"
android:text="0"
android:textColor="@color/white"
android:textColorHint="@color/white"
android:textSize="18sp"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="20dp"
android:text="@string/drill"
android:textColor="@color/white"
android:textSize="15sp" />
</LinearLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
2023-07-11 14:14:33 +08:00
android:layout_marginStart="23dp"
2023-06-26 18:04:58 +08:00
android:layout_marginTop="149dp"
2023-07-11 14:14:33 +08:00
android:layout_marginEnd="29dp"
2023-06-26 18:04:58 +08:00
app:cardBackgroundColor="#E82936"
app:cardCornerRadius="8dp"
app:cardElevation="0dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="35dp"
android:gravity="center_vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="23dp"
android:text="@string/count"
android:textColor="@color/white"
android:textSize="15sp" />
<EditText
android:id="@+id/total"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@null"
android:gravity="center"
android:inputType="number"
android:text="0"
android:textColor="@color/white"
android:textColorHint="@color/white"
android:textSize="18sp"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="20dp"
android:text="@string/live_send_gift_2"
android:textColor="@color/white"
android:textSize="15sp" />
</LinearLayout>
</androidx.cardview.widget.CardView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="213dp">
<androidx.cardview.widget.CardView
2023-07-10 16:36:48 +08:00
android:layout_width="72dp"
2023-06-26 18:04:58 +08:00
android:layout_height="35dp"
2023-07-11 14:14:33 +08:00
android:layout_marginStart="23dp"
2023-06-26 18:04:58 +08:00
app:cardBackgroundColor="#E82936"
app:cardCornerRadius="8dp"
app:cardElevation="0dp">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:text="@string/conditions"
android:textColor="@color/white"
2023-07-10 16:36:48 +08:00
android:textSize="13sp" />
2023-06-26 18:04:58 +08:00
</androidx.cardview.widget.CardView>
2023-07-10 16:36:48 +08:00
<LinearLayout
2023-06-26 18:04:58 +08:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="15dp"
2023-07-11 14:14:33 +08:00
android:layout_marginEnd="30dp">
2023-06-26 18:04:58 +08:00
<Button
android:id="@+id/there_is_no"
android:layout_width="45dp"
android:layout_height="30dp"
android:background="@drawable/background_red_packet_select"
android:gravity="center"
android:text="@string/there_is_no"
android:textColor="#FDD04A"
android:textSize="13sp" />
<Button
android:id="@+id/following_anchor"
2023-07-10 16:36:48 +08:00
android:layout_width="0dp"
2023-06-26 18:04:58 +08:00
android:layout_height="30dp"
android:layout_gravity="end"
2023-07-10 16:36:48 +08:00
android:layout_marginStart="5dp"
android:layout_weight="1"
2023-06-26 18:04:58 +08:00
android:background="@drawable/background_red_packet_select"
android:gravity="center"
android:text="@string/following_anchor"
android:textColor="#FDD04A"
2023-07-10 16:36:48 +08:00
android:textSize="10sp" />
</LinearLayout>
2023-06-26 18:04:58 +08:00
</LinearLayout>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2023-07-11 14:14:33 +08:00
android:layout_marginStart="23dp"
2023-06-26 18:04:58 +08:00
android:layout_marginTop="266dp"
2023-07-11 14:14:33 +08:00
android:layout_marginEnd="29dp">
2023-06-26 18:04:58 +08:00
<TextView
android:id="@+id/red_envelope_rill"
2023-07-10 16:36:48 +08:00
android:layout_width="105dp"
2023-06-26 18:04:58 +08:00
android:layout_height="wrap_content"
android:text="@string/red_envelope_rill"
android:textColor="@color/white"
android:textSize="12sp" />
<TextView
android:id="@+id/total_consumption_of_drill"
2023-07-10 16:36:48 +08:00
android:layout_width="105dp"
2023-06-26 18:04:58 +08:00
android:layout_height="wrap_content"
android:layout_gravity="end"
2023-07-10 16:36:48 +08:00
android:gravity="end"
2023-06-26 18:04:58 +08:00
android:text="@string/total_consumption_of_drill"
android:textColor="@color/white"
android:textSize="12sp" />
</FrameLayout>
<TextView
2023-06-30 10:17:33 +08:00
android:id="@+id/red_pack_send"
2023-06-26 18:04:58 +08:00
android:layout_width="160dp"
android:layout_height="40dp"
android:layout_gravity="center_horizontal|bottom"
android:layout_marginBottom="34dp"
android:background="@drawable/background_send_red_packet"
android:gravity="center"
2023-06-26 18:04:58 +08:00
android:text="@string/red_pack_6"
android:textColor="#8F3B00"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:id="@+id/top_up_now"
2023-06-26 18:04:58 +08:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|bottom"
android:layout_marginBottom="13dp"
android:text="@string/top_up_now"
2023-06-26 18:04:58 +08:00
android:textColor="@color/white"
2023-07-11 14:14:33 +08:00
android:gravity="center"
android:textSize="12sp" />
<FrameLayout
android:id="@+id/red_packet_illustrate"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background_send_red_packet_illustrate"
2023-07-11 11:44:02 +08:00
android:visibility="gone">
2023-07-10 16:36:48 +08:00
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
2023-07-11 11:43:12 +08:00
android:layout_height="392dp"
android:paddingTop="25dp"
android:paddingBottom="25dp">
2023-07-10 16:36:48 +08:00
<FrameLayout
android:layout_width="match_parent"
2023-07-11 11:43:12 +08:00
android:layout_height="match_parent">
2023-07-10 16:36:48 +08:00
<!--结果-->
<LinearLayout
android:layout_width="245dp"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal"
2023-07-11 11:34:40 +08:00
2023-07-10 16:36:48 +08:00
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/send_red_packet_illustrate1"
android:textColor="@color/white"
android:textSize="12sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/send_red_packet_illustrate2"
android:textColor="@color/white"
android:textSize="11sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:text="@string/send_red_packet_illustrate3"
android:textColor="@color/white"
android:textSize="12sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/send_red_packet_illustrate4"
android:textColor="@color/white"
android:textSize="11sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:text="@string/send_red_packet_illustrate5"
android:textColor="@color/white"
android:textSize="12sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/send_red_packet_illustrate6"
android:textColor="@color/white"
android:textSize="11sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:text="@string/send_red_packet_illustrate7"
android:textColor="@color/white"
android:textSize="12sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/send_red_packet_illustrate8"
android:textColor="@color/white"
android:textSize="11sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:text="@string/send_red_packet_illustrate9"
android:textColor="@color/white"
android:textSize="12sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/send_red_packet_illustrate10"
android:textColor="@color/white"
android:textSize="11sp" />
</LinearLayout>
2023-07-11 11:34:40 +08:00
2023-07-10 16:36:48 +08:00
</FrameLayout>
</androidx.core.widget.NestedScrollView>
2023-07-11 11:34:40 +08:00
<ImageView
android:id="@+id/illustrate_close"
android:layout_width="19dp"
android:layout_height="19dp"
android:layout_gravity="end"
android:layout_margin="12dp"
android:src="@mipmap/meiyan_icon_close" />
</FrameLayout>
2023-06-26 18:04:58 +08:00
</FrameLayout>