register_activity.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. android:focusableInTouchMode="true"
  6. android:orientation="vertical">
  7. <ImageView
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent"
  10. android:scaleType="centerCrop"
  11. android:src="@drawable/login_bg"/>
  12. <RelativeLayout
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent"
  15. android:orientation="vertical"
  16. android:paddingLeft="@dimen/content_padding"
  17. android:paddingRight="@dimen/content_padding">
  18. <TextView
  19. android:id="@+id/tv_login"
  20. android:layout_width="match_parent"
  21. android:layout_height="wrap_content"
  22. android:gravity="right"
  23. android:padding="@dimen/content_padding_big"
  24. android:text="登录"
  25. android:textColor="@color/orange_text_light"
  26. android:textSize="@dimen/text_size_4"/>
  27. <android.support.v7.widget.AppCompatEditText
  28. android:id="@+id/et_account"
  29. style="style_edt"
  30. android:inputType="phone"
  31. android:layout_width="match_parent"
  32. android:layout_height="@dimen/edt_heigh_default"
  33. android:layout_centerVertical="true"
  34. android:layout_margin="@dimen/content_padding_small"
  35. android:background="@drawable/sp_edt_background_login"
  36. android:hint="请输入手机号"
  37. android:paddingLeft="@dimen/content_padding_big"
  38. android:maxLength="11"
  39. android:textSize="@dimen/text_size_3"/>
  40. <LinearLayout
  41. android:id="@+id/ll_code"
  42. android:layout_width="match_parent"
  43. android:layout_height="wrap_content"
  44. android:layout_below="@id/et_account"
  45. android:layout_margin="@dimen/content_padding_small"
  46. android:orientation="horizontal"
  47. >
  48. <android.support.v7.widget.AppCompatEditText
  49. android:id="@+id/et_code"
  50. style="style_edt"
  51. android:layout_width="0dp"
  52. android:layout_height="@dimen/edt_heigh_default"
  53. android:layout_weight="2"
  54. android:background="@drawable/sp_edt_background_login"
  55. android:hint="请输入验证码"
  56. android:inputType="phone"
  57. android:paddingLeft="@dimen/content_padding_big"
  58. android:maxLength="6"
  59. android:textSize="@dimen/text_size_3"/>
  60. <TextView
  61. android:id="@+id/btn_code"
  62. android:layout_width="0dp"
  63. android:layout_height="wrap_content"
  64. android:layout_gravity="center|center_vertical"
  65. android:layout_marginLeft="@dimen/content_padding"
  66. android:layout_weight="1"
  67. android:background="@drawable/sp_btn_common"
  68. android:gravity="center"
  69. android:padding="@dimen/content_padding_small"
  70. android:text="获取验证码"
  71. android:textColor="@color/black_text_deep"
  72. />
  73. </LinearLayout>
  74. <android.support.v7.widget.AppCompatEditText
  75. android:id="@+id/et_psw"
  76. style="style_edt"
  77. android:layout_width="match_parent"
  78. android:layout_height="@dimen/edt_heigh_default"
  79. android:layout_below="@id/ll_code"
  80. android:layout_margin="@dimen/content_padding_small"
  81. android:background="@drawable/sp_edt_background_login"
  82. android:hint="请输入密码(至少6位)"
  83. android:inputType="textPassword"
  84. android:paddingLeft="@dimen/content_padding_big"
  85. android:textSize="@dimen/text_size_3"/>
  86. <android.support.v7.widget.AppCompatEditText
  87. android:id="@+id/et_invite"
  88. style="style_edt"
  89. android:layout_width="match_parent"
  90. android:layout_height="@dimen/edt_heigh_default"
  91. android:layout_below="@id/et_psw"
  92. android:layout_margin="@dimen/content_padding_small"
  93. android:background="@drawable/sp_edt_background_login"
  94. android:hint="请输入邀请码(选填)"
  95. android:inputType="number"
  96. android:paddingLeft="@dimen/content_padding_big"
  97. android:maxLength="6"
  98. android:textSize="@dimen/text_size_3"/>
  99. <TextView
  100. android:id="@+id/tv_wx"
  101. style="@style/style_btn"
  102. android:layout_width="match_parent"
  103. android:layout_height="@dimen/edt_heigh_default"
  104. android:layout_below="@id/et_invite"
  105. android:layout_marginTop="@dimen/layout_heigh_default"
  106. android:layout_marginRight="@dimen/content_padding_small"
  107. android:layout_marginLeft="@dimen/content_padding_small"
  108. android:gravity="center"
  109. android:text="注 册"
  110. android:textSize="@dimen/text_size_4"/>
  111. </RelativeLayout>
  112. </FrameLayout>