activity_login.xml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tool="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent">
  7. <ImageView
  8. android:background="@mipmap/default_bg"
  9. android:layout_width="match_parent"
  10. android:layout_height="match_parent"/>
  11. <ImageView
  12. android:id="@+id/ivLogo"
  13. android:layout_marginTop="133dp"
  14. app:layout_constraintTop_toTopOf="parent"
  15. app:layout_constraintStart_toStartOf="parent"
  16. app:layout_constraintEnd_toEndOf="parent"
  17. android:src="@mipmap/default_logo"
  18. android:layout_width="200dp"
  19. android:layout_height="200dp"/>
  20. <com.swago.baseswago.cusview.MediumTextView
  21. android:id="@+id/tvAccountLogin"
  22. android:text="@string/acccount_login"
  23. android:layout_width="wrap_content"
  24. android:layout_marginBottom="20dp"
  25. android:textSize="16dp"
  26. android:textColor="#ffffff"
  27. app:layout_constraintStart_toStartOf="parent"
  28. app:layout_constraintEnd_toEndOf="parent"
  29. app:layout_constraintBottom_toTopOf="@+id/tvAgreement"
  30. android:layout_height="wrap_content"/>
  31. <androidx.constraintlayout.widget.ConstraintLayout
  32. android:id="@+id/clFaceBook"
  33. android:layout_marginBottom="202dp"
  34. android:layout_marginStart="40dp"
  35. android:layout_marginEnd="40dp"
  36. android:visibility="visible"
  37. android:background="@drawable/shape_ff56b7_37"
  38. app:layout_constraintBottom_toBottomOf="parent"
  39. android:layout_width="match_parent"
  40. android:layout_height="56dp">
  41. <ImageView
  42. android:src="@mipmap/facebook"
  43. app:layout_constraintStart_toStartOf="parent"
  44. app:layout_constraintTop_toTopOf="parent"
  45. app:layout_constraintBottom_toBottomOf="parent"
  46. android:layout_marginStart="30dp"
  47. android:layout_width="24dp"
  48. android:layout_height="24dp"/>
  49. <com.swago.baseswago.cusview.MediumTextView
  50. app:layout_constraintStart_toStartOf="parent"
  51. app:layout_constraintEnd_toEndOf="parent"
  52. app:layout_constraintTop_toTopOf="parent"
  53. app:layout_constraintBottom_toBottomOf="parent"
  54. android:text="Facebook"
  55. android:textColor="#fff"
  56. android:textSize="16dp"
  57. android:layout_width="wrap_content"
  58. android:layout_height="wrap_content"/>
  59. </androidx.constraintlayout.widget.ConstraintLayout>
  60. <androidx.constraintlayout.widget.ConstraintLayout
  61. android:id="@+id/clGoogle"
  62. android:layout_marginBottom="128dp"
  63. android:layout_marginStart="40dp"
  64. android:layout_marginEnd="40dp"
  65. android:background="@drawable/shape_ff9f00_37"
  66. app:layout_constraintBottom_toBottomOf="parent"
  67. android:layout_width="match_parent"
  68. android:layout_height="56dp">
  69. <ImageView
  70. android:src="@mipmap/google"
  71. app:layout_constraintStart_toStartOf="parent"
  72. app:layout_constraintTop_toTopOf="parent"
  73. app:layout_constraintBottom_toBottomOf="parent"
  74. android:layout_marginStart="30dp"
  75. android:padding="2dp"
  76. android:layout_width="24dp"
  77. android:layout_height="24dp"/>
  78. <com.swago.baseswago.cusview.MediumTextView
  79. app:layout_constraintStart_toStartOf="parent"
  80. app:layout_constraintEnd_toEndOf="parent"
  81. app:layout_constraintTop_toTopOf="parent"
  82. app:layout_constraintBottom_toBottomOf="parent"
  83. android:text="Google"
  84. android:textColor="#fff"
  85. android:textSize="16dp"
  86. android:layout_width="wrap_content"
  87. android:layout_height="wrap_content"/>
  88. </androidx.constraintlayout.widget.ConstraintLayout>
  89. <EditText
  90. android:id="@+id/etAccount"
  91. android:layout_marginBottom="168dp"
  92. android:layout_marginStart="50dp"
  93. android:layout_marginEnd="50dp"
  94. android:hint="@string/input_account"
  95. android:gravity="center"
  96. android:textColor="#000"
  97. android:textSize="16dp"
  98. android:visibility="gone"
  99. android:background="@drawable/shape_f1f4f8_29"
  100. app:layout_constraintBottom_toTopOf="@+id/tvAccountLogin"
  101. android:layout_width="match_parent"
  102. android:layout_height="54dp"/>
  103. <EditText
  104. android:id="@+id/etSecret"
  105. android:hint="@string/input_secret"
  106. android:gravity="center"
  107. android:textColor="#000"
  108. android:textSize="18dp"
  109. android:visibility="gone"
  110. android:inputType="textPassword"
  111. android:layout_marginBottom="96dp"
  112. android:layout_marginStart="50dp"
  113. android:layout_marginEnd="50dp"
  114. android:background="@drawable/shape_f1f4f8_29"
  115. app:layout_constraintBottom_toTopOf="@+id/tvAccountLogin"
  116. android:layout_width="match_parent"
  117. android:layout_height="54dp"/>
  118. <ImageView
  119. android:id="@+id/ivAccountLogin"
  120. android:layout_marginBottom="22dp"
  121. android:padding="13dp"
  122. android:visibility="gone"
  123. android:background="@drawable/shape_ffbb56_ff7f8f_ff56b7"
  124. android:src="@mipmap/icon_account_login"
  125. app:layout_constraintStart_toStartOf="parent"
  126. app:layout_constraintEnd_toEndOf="parent"
  127. app:layout_constraintBottom_toTopOf="@+id/tvAccountLogin"
  128. android:layout_width="54dp"
  129. android:layout_height="54dp"/>
  130. <com.swago.baseswago.cusview.MediumTextView
  131. android:id="@+id/tvAgreement"
  132. android:textSize="12dp"
  133. android:textColor="#FF9300"
  134. app:layout_constraintStart_toStartOf="parent"
  135. app:layout_constraintEnd_toStartOf="@+id/and"
  136. app:layout_constraintBottom_toBottomOf="parent"
  137. android:layout_marginBottom="47dp"
  138. app:layout_constraintHorizontal_chainStyle="packed"
  139. android:text="@string/user_agreement"
  140. android:layout_width="wrap_content"
  141. android:layout_height="wrap_content"/>
  142. <com.swago.baseswago.cusview.MediumTextView
  143. android:id="@+id/and"
  144. android:text="@string/and"
  145. android:textSize="12dp"
  146. android:textColor="#CDCDCD"
  147. android:layout_marginStart="10dp"
  148. android:layout_marginEnd="10dp"
  149. app:layout_constraintStart_toEndOf="@+id/tvAgreement"
  150. app:layout_constraintEnd_toStartOf="@+id/tvPrivacy"
  151. app:layout_constraintBottom_toBottomOf="parent"
  152. android:layout_marginBottom="47dp"
  153. android:layout_width="wrap_content"
  154. android:layout_height="wrap_content"/>
  155. <com.swago.baseswago.cusview.MediumTextView
  156. android:id="@+id/tvPrivacy"
  157. android:textSize="12dp"
  158. android:textColor="#FF9300"
  159. app:layout_constraintStart_toEndOf="@+id/and"
  160. app:layout_constraintEnd_toEndOf="parent"
  161. app:layout_constraintBottom_toBottomOf="parent"
  162. android:layout_marginBottom="47dp"
  163. android:text="@string/privacy_policy"
  164. android:layout_width="wrap_content"
  165. android:layout_height="wrap_content"/>
  166. <com.swago.baseswago.cusview.MediumTextView
  167. android:textSize="12dp"
  168. android:textColor="#CDCDCD"
  169. app:layout_constraintBottom_toBottomOf="parent"
  170. app:layout_constraintStart_toStartOf="parent"
  171. app:layout_constraintEnd_toEndOf="parent"
  172. android:layout_marginBottom="20dp"
  173. android:gravity="center"
  174. android:text="@string/explain"
  175. android:layout_width="wrap_content"
  176. android:layout_height="wrap_content"/>
  177. </androidx.constraintlayout.widget.ConstraintLayout>