login_and_reg_login_layout.xml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:fitsSystemWindows="true"
  6. android:orientation="vertical"
  7. android:layout_width="match_parent"
  8. android:layout_height="match_parent">
  9. <android.support.design.widget.AppBarLayout
  10. android:id="@+id/app_bar_layout"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:theme="@style/AppTheme.AppBarOverlay"
  14. android:weightSum="1"
  15. app:elevation="0dp"
  16. app:layout_constraintHorizontal_bias="0.0"
  17. app:layout_constraintLeft_toLeftOf="parent"
  18. app:layout_constraintRight_toRightOf="parent"
  19. app:layout_constraintTop_toTopOf="parent">
  20. <android.support.v7.widget.Toolbar
  21. android:id="@+id/toolbar"
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. android:layout_weight="1.21"
  25. android:background="?attr/colorPrimary"
  26. app:titleTextAppearance="@style/Toolbar.TitleText"></android.support.v7.widget.Toolbar>
  27. </android.support.design.widget.AppBarLayout>
  28. <LinearLayout
  29. android:layout_width="match_parent"
  30. android:layout_height="match_parent"
  31. android:layout_marginTop="56dp"
  32. android:orientation="vertical">
  33. <TextView
  34. android:id="@+id/textView3"
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:layout_marginLeft="15dp"
  38. android:layout_marginTop="25dp"
  39. android:text="欢迎来到谁说"
  40. android:textSize="25sp"
  41. android:textStyle="bold"
  42. android:typeface="monospace"
  43. app:layout_constraintLeft_toLeftOf="parent"
  44. app:layout_constraintTop_toBottomOf="@+id/app_bar_layout" />
  45. <TextView
  46. android:id="@+id/textView4"
  47. android:layout_width="wrap_content"
  48. android:layout_height="wrap_content"
  49. android:layout_marginLeft="15dp"
  50. android:layout_marginTop="5dp"
  51. android:text="请输入您的登录信息"
  52. app:layout_constraintBottom_toTopOf="@+id/login_tel"
  53. app:layout_constraintLeft_toLeftOf="parent"
  54. app:layout_constraintTop_toBottomOf="@+id/textView3"
  55. app:layout_constraintVertical_bias="0.074" />
  56. <com.netease.nim.uikit.common.ui.widget.ClearableEditTextWithIcon
  57. android:id="@+id/login_tel"
  58. android:layout_width="match_parent"
  59. android:layout_height="wrap_content"
  60. android:layout_marginLeft="15dp"
  61. android:layout_marginRight="15dp"
  62. android:layout_marginTop="30dp"
  63. android:background="@android:drawable/editbox_background"
  64. android:hint="@string/please_input_tel_num"
  65. android:inputType="phone"
  66. android:maxLines="1"
  67. android:padding="15dp"
  68. app:layout_constraintHorizontal_bias="0.117"
  69. app:layout_constraintLeft_toLeftOf="@+id/app_bar_layout"
  70. app:layout_constraintRight_toRightOf="@+id/app_bar_layout"
  71. app:layout_constraintTop_toBottomOf="@+id/app_bar_layout" />
  72. <com.netease.nim.uikit.common.ui.widget.ClearableEditTextWithIcon
  73. android:id="@+id/login_password"
  74. android:layout_width="match_parent"
  75. android:layout_height="wrap_content"
  76. android:layout_marginLeft="15dp"
  77. android:layout_marginRight="15dp"
  78. android:layout_marginTop="20dp"
  79. android:background="@android:drawable/editbox_background"
  80. android:hint="@string/please_input_pwd"
  81. android:inputType="textPassword"
  82. android:maxLines="1"
  83. android:padding="15dp"
  84. app:layout_constraintHorizontal_bias="0.0"
  85. app:layout_constraintLeft_toLeftOf="@+id/login_tel"
  86. app:layout_constraintRight_toRightOf="@+id/login_tel"
  87. app:layout_constraintTop_toBottomOf="@+id/login_tel" />
  88. <TextView
  89. android:id="@+id/forgot_password"
  90. android:layout_width="wrap_content"
  91. android:layout_height="wrap_content"
  92. android:layout_gravity="right"
  93. android:layout_marginRight="15dp"
  94. android:layout_marginTop="9dp"
  95. android:text="忘记密码?"
  96. android:textColor="@color/grey_light"
  97. app:layout_constraintRight_toRightOf="@+id/login_password"
  98. app:layout_constraintTop_toBottomOf="@+id/login_password" />
  99. <Button
  100. android:id="@+id/login_btn"
  101. style="@style/NormalBtnStyle"
  102. android:layout_width="match_parent"
  103. android:layout_height="wrap_content"
  104. android:layout_marginLeft="15dp"
  105. android:layout_marginRight="15dp"
  106. android:layout_marginTop="15dp"
  107. android:text="@string/login"
  108. app:layout_constraintHorizontal_bias="0.0"
  109. app:layout_constraintLeft_toLeftOf="@+id/login_password"
  110. app:layout_constraintRight_toRightOf="@+id/login_password"
  111. app:layout_constraintTop_toBottomOf="@+id/login_password" />
  112. <LinearLayout
  113. android:layout_width="wrap_content"
  114. android:layout_height="wrap_content"
  115. android:layout_gravity="center"
  116. android:layout_marginTop="15dp"
  117. android:gravity="center_vertical|center_horizontal|center"
  118. android:orientation="horizontal">
  119. <RadioButton
  120. android:id="@+id/agree_radio"
  121. android:layout_width="wrap_content"
  122. android:layout_height="wrap_content"
  123. android:layout_weight="1"
  124. android:checked="true"
  125. android:text="登录代表您已同意"
  126. android:textColor="@color/color_grey_666666"
  127. android:textColorLink="@color/color_green_00ae8c"
  128. app:buttonTint="@color/color_green_00ae8c" />
  129. <TextView
  130. android:id="@+id/agree_txt"
  131. android:layout_width="wrap_content"
  132. android:layout_height="wrap_content"
  133. android:layout_weight="1"
  134. android:text="《用户注册协议》"
  135. android:textColor="@color/color_green_00ae8c" />
  136. </LinearLayout>
  137. </LinearLayout>
  138. <LinearLayout
  139. android:layout_width="match_parent"
  140. android:layout_height="match_parent"
  141. android:gravity="center"
  142. android:orientation="horizontal"
  143. android:layout_alignParentTop="true"
  144. android:layout_alignParentLeft="true"
  145. android:layout_alignParentStart="true">
  146. <TextView
  147. android:layout_width="wrap_content"
  148. android:layout_height="wrap_content"
  149. android:layout_gravity="bottom"
  150. android:layout_marginBottom="5dp"
  151. android:layout_weight="1"
  152. android:text="还没有账号?"
  153. android:textAlignment="textEnd" />
  154. <TextView
  155. android:id="@+id/register_txt"
  156. android:layout_width="wrap_content"
  157. android:layout_height="wrap_content"
  158. android:layout_gravity="bottom"
  159. android:layout_marginBottom="5dp"
  160. android:layout_weight="1"
  161. android:text="现在注册"
  162. android:textAlignment="textStart"
  163. android:textColor="@color/color_green_00ae8c" />
  164. </LinearLayout>
  165. </RelativeLayout>