fragment_password_red_packet.xml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent">
  5. <LinearLayout
  6. android:layout_width="match_parent"
  7. android:layout_height="wrap_content"
  8. android:background="@mipmap/rad_packet_fragment_bg"
  9. android:orientation="vertical"
  10. android:padding="32dp">
  11. <RelativeLayout
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content">
  14. <LinearLayout
  15. android:id="@+id/ll_amount"
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:layout_alignBottom="@+id/edt_input_money"
  19. android:orientation="horizontal">
  20. <ImageView
  21. android:id="@+id/iv_icon_pin"
  22. android:layout_width="wrap_content"
  23. android:layout_height="wrap_content"
  24. android:layout_marginEnd="4dp"
  25. android:src="@mipmap/icon_pin" />
  26. <TextView
  27. android:id="@+id/tv_amount"
  28. android:layout_width="wrap_content"
  29. android:layout_height="wrap_content"
  30. android:layout_alignParentStart="true"
  31. android:layout_marginBottom="3dp"
  32. android:text="金额"
  33. android:textColor="#333333"
  34. android:textSize="@dimen/sp_14_text_size" />
  35. </LinearLayout>
  36. <EditText
  37. android:id="@+id/edt_input_money"
  38. android:layout_width="match_parent"
  39. android:layout_height="wrap_content"
  40. android:layout_marginStart="2dp"
  41. android:layout_marginEnd="2dp"
  42. android:layout_toStartOf="@+id/tv_yuan"
  43. android:layout_toEndOf="@+id/ll_amount"
  44. android:background="@color/transparent"
  45. android:gravity="bottom|end"
  46. android:hint="0.01"
  47. android:inputType="numberDecimal"
  48. android:maxLength="10"
  49. android:textColor="#ff462f"
  50. android:textColorHint="#999999"
  51. android:textSize="24dp" />
  52. <TextView
  53. android:id="@+id/tv_yuan"
  54. android:layout_width="wrap_content"
  55. android:layout_height="wrap_content"
  56. android:layout_alignBottom="@+id/edt_input_money"
  57. android:layout_alignParentEnd="true"
  58. android:layout_marginBottom="3dp"
  59. android:text="元"
  60. android:textColor="#333333"
  61. android:textSize="@dimen/sp_14_text_size" />
  62. </RelativeLayout>
  63. <View
  64. android:layout_width="match_parent"
  65. android:layout_height="1px"
  66. android:layout_marginTop="16dp"
  67. android:background="#dddddd" />
  68. <ViewStub
  69. android:id="@+id/view_stub_red_packet_count"
  70. android:layout_width="match_parent"
  71. android:layout_height="wrap_content" />
  72. <ViewStub
  73. android:id="@+id/view_stub_red_packet_type"
  74. android:layout_width="match_parent"
  75. android:layout_height="wrap_content" />
  76. <LinearLayout
  77. android:id="@+id/ll_remark"
  78. android:orientation="vertical"
  79. android:layout_width="match_parent"
  80. android:layout_height="match_parent">
  81. <RelativeLayout
  82. android:layout_width="match_parent"
  83. android:layout_height="wrap_content"
  84. android:layout_marginTop="36dp">
  85. <TextView
  86. android:id="@+id/tv_remark"
  87. android:layout_width="wrap_content"
  88. android:layout_height="wrap_content"
  89. android:layout_alignBottom="@+id/edt_input_remark"
  90. android:layout_alignParentStart="true"
  91. android:layout_marginBottom="3dp"
  92. android:hint="0.01"
  93. android:text="备注:"
  94. android:textColor="#333333"
  95. android:textColorHint="#999999"
  96. android:textSize="@dimen/sp_14_text_size" />
  97. <EditText
  98. android:id="@+id/edt_input_remark"
  99. android:layout_width="match_parent"
  100. android:layout_height="wrap_content"
  101. android:layout_marginStart="2dp"
  102. android:layout_toRightOf="@+id/tv_remark"
  103. android:background="@color/transparent"
  104. android:gravity="center_vertical|end"
  105. android:hint="恭喜发财,大吉大利!"
  106. android:singleLine="true"
  107. android:textColor="#333333"
  108. android:textSize="18dp" />
  109. </RelativeLayout>
  110. <View
  111. android:layout_width="match_parent"
  112. android:layout_height="1px"
  113. android:layout_marginTop="16dp"
  114. android:background="#dddddd" />
  115. </LinearLayout>
  116. <TextView
  117. android:id="@+id/tv_red_packet_type"
  118. android:layout_width="wrap_content"
  119. android:layout_height="wrap_content"
  120. android:layout_marginTop="16dp"
  121. android:gravity="center"
  122. android:text="当前为拼手气红包,改为普通红包"
  123. android:textColor="#333333"
  124. android:textSize="12sp" />
  125. <TextView
  126. android:id="@+id/tv_send_red_packet"
  127. android:layout_width="match_parent"
  128. android:layout_height="50dp"
  129. android:layout_gravity="center_horizontal"
  130. android:layout_marginStart="10dp"
  131. android:layout_marginTop="85dp"
  132. android:layout_marginEnd="10dp"
  133. android:layout_marginBottom="35dp"
  134. android:background="@drawable/selector_send_red_packet"
  135. android:gravity="center"
  136. android:text="发送群红包"
  137. android:textColor="@color/white"
  138. android:textSize="18sp" />
  139. </LinearLayout>
  140. </FrameLayout>