activity_register_a.xml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.ConstraintLayout 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:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. tools:context=".screen.RegisterAActivity">
  8. <ScrollView
  9. android:fillViewport="true"
  10. android:layout_width="0dp"
  11. android:layout_height="0dp"
  12. app:layout_constraintLeft_toLeftOf="parent"
  13. app:layout_constraintRight_toRightOf="parent"
  14. app:layout_constraintTop_toTopOf="parent"
  15. app:layout_constraintBottom_toBottomOf="parent"
  16. >
  17. <android.support.constraint.ConstraintLayout
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content">
  20. <android.support.constraint.Guideline
  21. android:id="@+id/guideLine_registerA_centerHorizontal"
  22. android:orientation="vertical"
  23. android:layout_width="0dp"
  24. android:layout_height="0dp"
  25. app:layout_constraintGuide_percent="0.5"
  26. />
  27. <android.widget.Space
  28. android:id="@+id/anchor_registerA_left"
  29. android:layout_width="wrap_content"
  30. android:layout_height="wrap_content"
  31. android:layout_marginRight="136dp"
  32. android:layout_marginEnd="136dp"
  33. app:layout_constraintRight_toRightOf="@id/guideLine_registerA_centerHorizontal"
  34. />
  35. <android.widget.Space
  36. android:id="@+id/anchor_registerA_right"
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:layout_marginLeft="136dp"
  40. android:layout_marginStart="136dp"
  41. app:layout_constraintLeft_toLeftOf="@id/guideLine_registerA_centerHorizontal"
  42. />
  43. <ImageButton
  44. android:id="@+id/btn_registerA_close"
  45. android:background="?android:attr/selectableItemBackground"
  46. android:src="@drawable/ic_close_blue_24dp"
  47. android:contentDescription="@string/emptyImageContextDescription"
  48. android:layout_width="36dp"
  49. android:layout_height="36dp"
  50. android:layout_marginTop="16dp"
  51. android:layout_marginLeft="15dp"
  52. android:layout_marginStart="15dp"
  53. app:layout_constraintLeft_toLeftOf="parent"
  54. app:layout_constraintTop_toTopOf="parent"
  55. />
  56. <ImageView
  57. android:id="@+id/iv_registerA_kdanCloud"
  58. android:src="@drawable/kdancloud"
  59. android:scaleType="centerCrop"
  60. android:contentDescription="@string/emptyImageContextDescription"
  61. android:layout_width="116dp"
  62. android:layout_height="77dp"
  63. android:layout_marginTop="48dp"
  64. app:layout_constraintLeft_toLeftOf="parent"
  65. app:layout_constraintRight_toRightOf="parent"
  66. app:layout_constraintTop_toTopOf="parent"
  67. app:layout_constraintBottom_toTopOf="@+id/emailRegisterFromView_registerA"
  68. app:layout_constraintVertical_chainStyle="packed"
  69. />
  70. <com.kdanmobile.kdanloginregisterui.widget.EmailRegisterFormView
  71. android:id="@+id/emailRegisterFromView_registerA"
  72. android:layout_width="0dp"
  73. android:layout_height="wrap_content"
  74. android:layout_marginTop="36dp"
  75. app:layout_constraintLeft_toLeftOf="@id/anchor_registerA_left"
  76. app:layout_constraintRight_toRightOf="@id/anchor_registerA_right"
  77. app:layout_constraintTop_toBottomOf="@id/iv_registerA_kdanCloud"
  78. app:layout_constraintBottom_toTopOf="@+id/tv_registerA_orDivider"
  79. />
  80. <TextView
  81. android:id="@+id/tv_registerA_orDivider"
  82. android:text="@string/or"
  83. android:textSize="@dimen/or_divider_text_size"
  84. android:textColor="@color/or_diver"
  85. android:layout_width="wrap_content"
  86. android:layout_height="wrap_content"
  87. android:layout_marginTop="16dp"
  88. app:layout_constraintTop_toBottomOf="@id/emailRegisterFromView_registerA"
  89. app:layout_constraintLeft_toLeftOf="parent"
  90. app:layout_constraintRight_toRightOf="parent"
  91. app:layout_constraintBottom_toTopOf="@+id/view_registerA_fbRegister"
  92. />
  93. <View
  94. android:background="@color/or_diver"
  95. android:layout_width="0dp"
  96. android:layout_height="1dp"
  97. android:layout_marginRight="16dp"
  98. android:layout_marginEnd="16dp"
  99. app:layout_constraintTop_toTopOf="@id/tv_registerA_orDivider"
  100. app:layout_constraintBottom_toBottomOf="@id/tv_registerA_orDivider"
  101. app:layout_constraintLeft_toLeftOf="@id/anchor_registerA_left"
  102. app:layout_constraintRight_toLeftOf="@id/tv_registerA_orDivider"
  103. />
  104. <View
  105. android:background="@color/or_diver"
  106. android:layout_width="0dp"
  107. android:layout_height="1dp"
  108. android:layout_marginLeft="16dp"
  109. android:layout_marginStart="16dp"
  110. app:layout_constraintTop_toTopOf="@id/tv_registerA_orDivider"
  111. app:layout_constraintBottom_toBottomOf="@id/tv_registerA_orDivider"
  112. app:layout_constraintLeft_toRightOf="@id/tv_registerA_orDivider"
  113. app:layout_constraintRight_toRightOf="@id/anchor_registerA_right"
  114. />
  115. <com.kdanmobile.kdanloginregisterui.widget.btn.FacebookRegisterBtn
  116. android:id="@+id/view_registerA_fbRegister"
  117. android:layout_width="0dp"
  118. android:layout_height="@dimen/login_register_btn_height"
  119. android:layout_marginTop="16dp"
  120. app:layout_constraintTop_toBottomOf="@id/tv_registerA_orDivider"
  121. app:layout_constraintLeft_toLeftOf="@id/anchor_registerA_left"
  122. app:layout_constraintRight_toRightOf="@id/anchor_registerA_right"
  123. app:layout_constraintBottom_toTopOf="@+id/view_registerA_googleRegister"
  124. />
  125. <com.kdanmobile.kdanloginregisterui.widget.btn.GoogleRegisterBtn
  126. android:id="@+id/view_registerA_googleRegister"
  127. android:layout_width="0dp"
  128. android:layout_height="@dimen/login_register_btn_height"
  129. android:layout_marginTop="8dp"
  130. app:layout_constraintTop_toBottomOf="@id/view_registerA_fbRegister"
  131. app:layout_constraintLeft_toLeftOf="@id/anchor_registerA_left"
  132. app:layout_constraintRight_toRightOf="@id/anchor_registerA_right"
  133. app:layout_constraintBottom_toTopOf="@+id/tv_registerA_switchToLogin"
  134. />
  135. <TextView
  136. android:id="@+id/tv_registerA_switchToLogin"
  137. android:layout_width="0dp"
  138. android:layout_height="wrap_content"
  139. android:layout_marginTop="32dp"
  140. android:text="@string/switch_to_login"
  141. android:textColor="@color/switch_text"
  142. android:gravity="center"
  143. app:layout_constraintBottom_toTopOf="@+id/tv_registerA_tosAndPp"
  144. app:layout_constraintLeft_toLeftOf="@id/anchor_registerA_left"
  145. app:layout_constraintRight_toRightOf="@id/anchor_registerA_right"
  146. app:layout_constraintTop_toBottomOf="@id/view_registerA_googleRegister" />
  147. <TextView
  148. android:id="@+id/tv_registerA_tosAndPp"
  149. tools:text="Our terms of service and privacy policy."
  150. android:textSize="@dimen/tos_and_pp_text_size"
  151. android:layout_width="0dp"
  152. android:layout_height="wrap_content"
  153. android:layout_marginTop="32dp"
  154. android:layout_marginBottom="20dp"
  155. android:gravity="center"
  156. app:layout_constraintLeft_toLeftOf="@id/anchor_registerA_left"
  157. app:layout_constraintRight_toRightOf="@id/anchor_registerA_right"
  158. app:layout_constraintTop_toBottomOf="@id/tv_registerA_switchToLogin"
  159. app:layout_constraintBottom_toBottomOf="parent"
  160. />
  161. </android.support.constraint.ConstraintLayout>
  162. </ScrollView>
  163. </android.support.constraint.ConstraintLayout>