hnyy_phone_login.xml 7.4 KB

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