activity_register.xml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:background="@color/blue_very_light"
  6. android:orientation="vertical" >
  7. <com.onion.appsbackup.view.CustomedActionBar
  8. xmlns:ab="http://schemas.android.com/apk/res-auto"
  9. android:id="@+id/ab_register"
  10. android:layout_width="match_parent"
  11. android:layout_height="@dimen/action_bar_height"
  12. ab:title="@string/label_register"
  13. android:layout_marginBottom="30dp" />
  14. <LinearLayout
  15. android:layout_width="match_parent"
  16. android:layout_height="40dp"
  17. android:layout_marginBottom="10dp"
  18. android:layout_marginLeft="@dimen/activity_horizontal_margin"
  19. android:layout_marginRight="@dimen/activity_horizontal_margin"
  20. android:layout_marginTop="20dp"
  21. android:background="@drawable/shape_edittext_radius"
  22. android:orientation="horizontal" >
  23. <LinearLayout
  24. android:layout_width="match_parent"
  25. android:layout_height="match_parent"
  26. android:orientation="horizontal" >
  27. <EditText
  28. android:id="@+id/et_phone"
  29. android:layout_width="0dp"
  30. android:layout_height="@dimen/edittext_height"
  31. android:layout_weight="1"
  32. android:background="@null"
  33. android:digits="1234567890"
  34. android:hint="请输入您的手机号"
  35. android:inputType="number"
  36. android:textColor="@color/black"
  37. android:textSize="12sp"
  38. android:padding="5dp" />
  39. <Button
  40. android:id="@+id/btn_get_chaptcha"
  41. android:layout_width="70dp"
  42. android:layout_height="match_parent"
  43. android:background="@drawable/selector_button_get_captcha"
  44. android:text="获取验证码"
  45. android:textColor="@color/white"
  46. android:textSize="10sp" />
  47. </LinearLayout>
  48. </LinearLayout>
  49. <!-- <EditText
  50. android:id="@+id/et_phone"
  51. android:layout_width="match_parent"
  52. android:layout_height="@dimen/edittext_height"
  53. android:layout_marginLeft="@dimen/activity_horizontal_margin"
  54. android:layout_marginRight="@dimen/activity_horizontal_margin"
  55. android:background="@drawable/shape_edittext_radius"
  56. android:hint="@string/hint_mobile_phone_number"
  57. android:inputType="number"
  58. android:digits="1234567890"
  59. android:maxLength="11"
  60. android:textColor="@color/black"
  61. android:padding="5dp"
  62. android:textSize="12sp" /> -->
  63. <!-- <LinearLayout
  64. android:layout_width="match_parent"
  65. android:layout_height="wrap_content"
  66. android:orientation="vertical"
  67. android:layout_marginLeft="@dimen/activity_horizontal_margin"
  68. android:layout_marginRight="@dimen/activity_horizontal_margin"
  69. android:layout_marginBottom="10dp" >
  70. <TextView
  71. android:id="@+id/tv_phone_alarm"
  72. android:layout_width="wrap_content"
  73. android:layout_height="wrap_content"
  74. android:text="@string/label_input_phone_number"
  75. android:textColor="@color/cute_yellow"
  76. android:textSize="10dp" />
  77. </LinearLayout> -->
  78. <EditText
  79. android:id="@+id/et_chaptcha"
  80. android:layout_width="match_parent"
  81. android:layout_height="@dimen/edittext_height"
  82. android:layout_marginLeft="@dimen/activity_horizontal_margin"
  83. android:layout_marginRight="@dimen/activity_horizontal_margin"
  84. android:background="@drawable/shape_edittext_radius"
  85. android:hint="请输入收到的验证码"
  86. android:textColor="@color/black"
  87. android:textSize="12sp"
  88. android:padding="5dp"
  89. android:layout_marginBottom="10dp" />
  90. <EditText
  91. android:id="@+id/et_name"
  92. android:layout_width="match_parent"
  93. android:layout_height="@dimen/edittext_height"
  94. android:layout_marginLeft="@dimen/activity_horizontal_margin"
  95. android:layout_marginRight="@dimen/activity_horizontal_margin"
  96. android:background="@drawable/shape_edittext_radius"
  97. android:hint="@string/label_username"
  98. android:textColor="@color/black"
  99. android:textSize="12sp"
  100. android:padding="5dp"
  101. android:layout_marginBottom="10dp" />
  102. <EditText
  103. android:id="@+id/et_password"
  104. android:layout_width="match_parent"
  105. android:layout_height="@dimen/edittext_height"
  106. android:layout_marginBottom="30dp"
  107. android:layout_marginLeft="@dimen/activity_horizontal_margin"
  108. android:layout_marginRight="@dimen/activity_horizontal_margin"
  109. android:background="@drawable/shape_edittext_radius"
  110. android:hint="@string/label_password"
  111. android:inputType="textPassword"
  112. android:textColor="@color/black"
  113. android:textSize="12sp"
  114. android:padding="5dp" />
  115. <Button
  116. android:id="@+id/btn_register"
  117. android:layout_width="match_parent"
  118. android:layout_height="@dimen/button_height"
  119. android:layout_marginLeft="@dimen/activity_horizontal_margin"
  120. android:layout_marginRight="@dimen/activity_horizontal_margin"
  121. android:background="@drawable/selector_button_radius"
  122. android:enabled="false"
  123. android:minHeight="0dp"
  124. android:text="@string/label_register"
  125. android:textColor="@color/white"
  126. android:textSize="@dimen/button_text_size" />
  127. </LinearLayout>