hnyy_register_dialog.xml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="360dp"
  4. android:layout_height="280dp"
  5. android:layout_gravity="center"
  6. android:background="@drawable/hnyy_login_bg"
  7. >
  8. <RelativeLayout
  9. android:id="@+id/rl1"
  10. android:layout_width="match_parent"
  11. android:layout_height="60dp">
  12. <ImageButton
  13. android:id="@+id/close_btn"
  14. android:layout_width="26dp"
  15. android:layout_height="match_parent"
  16. android:layout_centerVertical="true"
  17. android:layout_marginLeft="30dp"
  18. android:src="@mipmap/hnyy_reback"
  19. android:background="@color/hnyy_transparent"/>
  20. <TextView
  21. android:layout_width="wrap_content"
  22. android:layout_height="wrap_content"
  23. android:text="@string/hnyy_guest_register"
  24. android:textSize="19sp"
  25. android:layout_centerInParent="true"
  26. android:textColor="@color/hnyy_edittext_bg_deep_gray"
  27. />
  28. <ImageButton
  29. android:id="@+id/btn_kefu"
  30. android:layout_width="26dp"
  31. android:layout_height="match_parent"
  32. android:layout_alignParentRight="true"
  33. android:layout_centerVertical="true"
  34. android:layout_marginRight="30dp"
  35. android:src="@mipmap/hnyy_kefu"
  36. android:background="@color/hnyy_transparent" />
  37. </RelativeLayout>
  38. <RelativeLayout
  39. android:id="@+id/ll1"
  40. android:layout_below="@+id/rl1"
  41. android:layout_width="300dp"
  42. android:layout_height="wrap_content"
  43. android:layout_centerInParent="true" >
  44. <EditText
  45. android:id="@+id/reg_account_edit"
  46. android:layout_width="match_parent"
  47. android:layout_height="40dp"
  48. android:background="@drawable/hnyy_edittext_bg"
  49. android:digits="0123456789abcdefghijgklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
  50. android:gravity="center_vertical"
  51. android:hint="@string/hnyy_input_your_account"
  52. android:maxLength="20"
  53. android:maxLines="1"
  54. android:paddingLeft="20dp"
  55. android:textColorHint="@color/hnyy_text_hint_color"
  56. android:textSize="14dp"
  57. android:textColor="@color/hnyy_text_black"/>
  58. <ImageView
  59. android:id="@+id/iv_clear_text"
  60. android:layout_alignRight="@id/reg_account_edit"
  61. android:layout_width="40dp"
  62. android:layout_height="40dp"
  63. android:src="@mipmap/hnyy_close"
  64. android:padding="13dp"
  65. android:layout_marginRight="3dp"
  66. />
  67. <EditText
  68. android:layout_below="@id/reg_account_edit"
  69. android:id="@+id/reg_pwd_edit"
  70. android:layout_width="match_parent"
  71. android:layout_height="40dp"
  72. android:background="@drawable/hnyy_edittext_bg"
  73. android:paddingLeft="20dp"
  74. android:hint="@string/hnyy_input_your_pwd"
  75. android:textColorHint="@color/hnyy_text_hint_color"
  76. android:digits="0123456789abcdefghijgklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
  77. android:maxLength="20"
  78. android:maxLines="1"
  79. android:textSize="14dp"
  80. android:layout_marginTop="10dp"
  81. android:gravity="center_vertical"
  82. android:textColor="@color/hnyy_text_black"
  83. />
  84. <ImageView
  85. android:id="@+id/iv_show_pwd"
  86. android:layout_below="@id/reg_account_edit"
  87. android:layout_marginTop="10dp"
  88. android:layout_alignRight="@+id/reg_pwd_edit"
  89. android:layout_width="40dp"
  90. android:layout_height="40dp"
  91. android:src="@mipmap/hnyy_open_eye"
  92. android:padding="10dp"
  93. android:layout_marginRight="5dp"
  94. />
  95. </RelativeLayout>
  96. <RelativeLayout
  97. android:id="@+id/reg_tip_ll"
  98. android:layout_width="300dp"
  99. android:layout_height="35dp"
  100. android:layout_alignRight="@id/ll1"
  101. android:layout_below="@+id/btn_phone_register"
  102. android:gravity="center_vertical"
  103. >
  104. <CheckBox
  105. android:id="@+id/cb_register"
  106. android:layout_width="wrap_content"
  107. android:layout_height="match_parent"
  108. android:layout_marginLeft="20dp"
  109. android:checked="true"
  110. android:gravity="left|center"
  111. style="@style/hnyy_checkbox_style"
  112. />
  113. <TextView
  114. android:id="@+id/tv_agree_tip"
  115. android:layout_toRightOf="@id/cb_register"
  116. android:layout_marginLeft="10dp"
  117. android:layout_width="wrap_content"
  118. android:layout_height="match_parent"
  119. android:gravity="center"
  120. android:textSize="11.2sp"
  121. android:text="@string/hnyy_agreement_tip"
  122. android:textColor="@color/hnyy_text_black"/>
  123. <TextView
  124. android:id="@+id/tv_tip"
  125. android:layout_toRightOf="@id/tv_agree_tip"
  126. android:layout_width="wrap_content"
  127. android:layout_height="match_parent"
  128. android:gravity="center"
  129. android:textSize="11.2sp"
  130. android:text="@string/hnyy_agree_register_tip"
  131. android:textColor="@color/hnyy_font_red_color"/>
  132. <TextView
  133. android:id="@+id/tv_and_tip"
  134. android:layout_toRightOf="@id/tv_tip"
  135. android:layout_width="wrap_content"
  136. android:layout_height="match_parent"
  137. android:gravity="center"
  138. android:textSize="11.2sp"
  139. android:text="@string/hnyy_and"
  140. android:textColor="@color/hnyy_text_black"/>
  141. <TextView
  142. android:id="@+id/tv_private_policy"
  143. android:layout_toRightOf="@id/tv_and_tip"
  144. android:layout_width="wrap_content"
  145. android:layout_height="match_parent"
  146. android:gravity="center|left"
  147. android:textSize="11.2sp"
  148. android:text="@string/hnyy_private_policy"
  149. android:textColor="@color/hnyy_font_red_color"/>
  150. </RelativeLayout>
  151. <Button
  152. android:id="@+id/reg_compete_btn"
  153. android:layout_width="300dp"
  154. android:layout_height="40dp"
  155. android:layout_below="@id/ll1"
  156. android:layout_gravity="center_horizontal"
  157. android:background="@drawable/hnyy_login_button_style"
  158. android:layout_centerHorizontal="true"
  159. android:text="@string/hnyy_register"
  160. android:textColor="@color/hnyy_white"
  161. android:textSize="16sp"
  162. android:layout_marginTop="10dp"/>
  163. <Button
  164. android:id="@+id/btn_phone_register"
  165. android:layout_width="wrap_content"
  166. android:layout_height="40dp"
  167. android:layout_below="@id/reg_compete_btn"
  168. android:layout_alignLeft="@id/reg_tip_ll"
  169. android:background="@null"
  170. android:drawableLeft="@mipmap/hnyy_phone"
  171. android:text="@string/hnyy_phone_register"
  172. android:textColor="@color/hnyy_text_cyan_color"
  173. android:textSize="14sp" />
  174. <Button
  175. android:id="@+id/btn_account_login"
  176. android:layout_width="wrap_content"
  177. android:layout_height="40dp"
  178. android:layout_below="@id/reg_compete_btn"
  179. android:layout_alignRight="@id/reg_tip_ll"
  180. android:background="@null"
  181. android:drawableLeft="@mipmap/hnyy_account_login"
  182. android:text="@string/hnyy_has_account"
  183. android:textColor="@color/hnyy_text_cyan_color"
  184. android:textSize="14sp" />
  185. </RelativeLayout>