activity_register_a.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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_thirdPtyBtn"
  29. android:layout_width="206dp"
  30. android:layout_height="wrap_content"
  31. app:layout_constraintLeft_toLeftOf="@+id/iv_registerA_kdanCloud"
  32. app:layout_constraintRight_toRightOf="@+id/iv_registerA_kdanCloud"
  33. />
  34. <ImageButton
  35. android:id="@+id/btn_registerA_close"
  36. android:background="?android:attr/selectableItemBackground"
  37. android:src="@drawable/ic_close_blue_24dp"
  38. android:contentDescription="@string/emptyImageContextDescription"
  39. android:layout_width="36dp"
  40. android:layout_height="36dp"
  41. android:layout_marginTop="16dp"
  42. android:layout_marginLeft="15dp"
  43. android:layout_marginStart="15dp"
  44. app:layout_constraintLeft_toLeftOf="parent"
  45. app:layout_constraintTop_toTopOf="parent"
  46. />
  47. <ImageView
  48. android:id="@+id/iv_registerA_kdanCloud"
  49. android:src="@drawable/kdancloud"
  50. android:scaleType="centerCrop"
  51. android:contentDescription="@string/emptyImageContextDescription"
  52. android:layout_width="117dp"
  53. android:layout_height="78dp"
  54. android:layout_marginRight="84dp"
  55. android:layout_marginEnd="84dp"
  56. app:layout_constraintRight_toRightOf="@id/guideLine_registerA_centerHorizontal"
  57. app:layout_constraintTop_toTopOf="parent"
  58. app:layout_constraintBottom_toTopOf="@+id/tv_registerA_title"
  59. app:layout_constraintVertical_chainStyle="packed"
  60. />
  61. <TextView
  62. android:id="@+id/tv_registerA_title"
  63. android:layout_width="wrap_content"
  64. android:layout_height="wrap_content"
  65. android:gravity="center"
  66. android:text="@string/register_title"
  67. android:textColor="@color/register_title"
  68. android:textSize="16sp"
  69. android:textStyle="bold"
  70. android:layout_marginTop="4dp"
  71. app:layout_constraintLeft_toLeftOf="@id/anchor_registerA_thirdPtyBtn"
  72. app:layout_constraintRight_toRightOf="@id/anchor_registerA_thirdPtyBtn"
  73. app:layout_constraintTop_toBottomOf="@id/iv_registerA_kdanCloud"
  74. app:layout_constraintBottom_toTopOf="@+id/view_registerA_fbRegister"
  75. />
  76. <com.kdanmobile.kdanloginregisterui.widget.btn.FacebookRegisterBtn
  77. android:id="@+id/view_registerA_fbRegister"
  78. android:layout_width="0dp"
  79. android:layout_height="37dp"
  80. android:layout_marginTop="8dp"
  81. app:layout_constraintTop_toBottomOf="@id/tv_registerA_title"
  82. app:layout_constraintBottom_toTopOf="@+id/view_registerA_googleRegister"
  83. app:layout_constraintLeft_toLeftOf="@id/anchor_registerA_thirdPtyBtn"
  84. app:layout_constraintRight_toRightOf="@id/anchor_registerA_thirdPtyBtn"
  85. />
  86. <com.kdanmobile.kdanloginregisterui.widget.btn.GoogleRegisterBtn
  87. android:id="@+id/view_registerA_googleRegister"
  88. android:layout_width="0dp"
  89. android:layout_height="@dimen/login_register_btn_height"
  90. android:layout_marginTop="10dp"
  91. app:layout_constraintTop_toBottomOf="@id/view_registerA_fbRegister"
  92. app:layout_constraintLeft_toLeftOf="@id/anchor_registerA_thirdPtyBtn"
  93. app:layout_constraintRight_toRightOf="@id/anchor_registerA_thirdPtyBtn"
  94. app:layout_constraintBottom_toBottomOf="parent"
  95. />
  96. <com.kdanmobile.kdanloginregisterui.widget.EmailRegisterFormView
  97. android:id="@+id/emailRegisterFromView_registerA"
  98. android:layout_width="240dp"
  99. android:layout_height="wrap_content"
  100. android:layout_marginLeft="28dp"
  101. android:layout_marginStart="28dp"
  102. app:layout_constraintLeft_toLeftOf="@id/guideLine_registerA_centerHorizontal"
  103. app:layout_constraintTop_toTopOf="parent"
  104. app:layout_constraintBottom_toTopOf="@id/tv_registerA_tosAndPp"
  105. app:layout_constraintVertical_chainStyle="packed"
  106. />
  107. <TextView
  108. android:id="@+id/tv_registerA_tosAndPp"
  109. android:layout_width="0dp"
  110. android:layout_height="wrap_content"
  111. android:layout_marginTop="8dp"
  112. android:textSize="@dimen/tos_and_pp_text_size"
  113. android:gravity="center"
  114. app:layout_constraintLeft_toLeftOf="@id/emailRegisterFromView_registerA"
  115. app:layout_constraintRight_toRightOf="@id/emailRegisterFromView_registerA"
  116. app:layout_constraintTop_toBottomOf="@id/emailRegisterFromView_registerA"
  117. app:layout_constraintBottom_toBottomOf="parent"
  118. tools:text="Terms of service &amp; Privacy policy."
  119. />
  120. <android.support.constraint.Barrier
  121. android:id="@+id/barrier_registerALand_bottom"
  122. android:layout_width="wrap_content"
  123. android:layout_height="wrap_content"
  124. app:barrierDirection="bottom"
  125. app:constraint_referenced_ids="view_registerA_googleRegister, tv_registerA_tosAndPp"
  126. />
  127. <TextView
  128. android:id="@+id/tv_registerA_switchToLogin"
  129. android:layout_width="wrap_content"
  130. android:layout_height="19dp"
  131. android:layout_marginTop="16dp"
  132. android:layout_marginBottom="24dp"
  133. android:text="@string/switch_to_login"
  134. android:textColor="@color/switch_text"
  135. app:layout_constraintBottom_toBottomOf="parent"
  136. app:layout_constraintLeft_toLeftOf="parent"
  137. app:layout_constraintRight_toRightOf="parent"
  138. app:layout_constraintTop_toTopOf="@id/barrier_registerALand_bottom" />
  139. </android.support.constraint.ConstraintLayout>
  140. </ScrollView>
  141. </android.support.constraint.ConstraintLayout>