Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.87 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:id="@+id/scrollView"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:fillViewport="true"
  8. android:fitsSystemWindows="true">
  9.  
  10. <android.support.constraint.ConstraintLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="match_parent">
  13.  
  14. <ImageView
  15. android:id="@+id/imageView2"
  16. android:layout_width="250dp"
  17. android:layout_height="270dp"
  18. android:layout_marginTop="@dimen/spacing_10dp"
  19. android:scaleType="fitCenter"
  20. android:src="@drawable/main_icon"
  21. android:visibility="visible"
  22. app:layout_constraintEnd_toEndOf="parent"
  23. app:layout_constraintStart_toStartOf="parent"
  24. app:layout_constraintTop_toTopOf="parent" />
  25.  
  26. <ProgressBar
  27. android:id="@+id/progress_bar"
  28. android:layout_width="70dp"
  29. android:layout_height="70dp"
  30. android:indeterminate="true"
  31. android:indeterminateDrawable="@drawable/gradient_progress_bar"
  32. android:progress="130"
  33. android:visibility="gone"
  34. app:layout_constraintBottom_toBottomOf="parent"
  35. app:layout_constraintEnd_toEndOf="parent"
  36. app:layout_constraintStart_toStartOf="parent"
  37. app:layout_constraintTop_toBottomOf="@+id/imageView2" />
  38.  
  39. <ImageView
  40. android:id="@+id/iv_login_bkg"
  41. android:layout_width="match_parent"
  42. android:layout_height="240dp"
  43. android:scaleType="centerCrop"
  44. android:src="@drawable/semi_circular_bkg"
  45. app:layout_constraintBottom_toBottomOf="parent" />
  46.  
  47. <FrameLayout
  48. android:id="@+id/btn_login_from_insta"
  49. android:layout_width="wrap_content"
  50. android:layout_height="wrap_content"
  51. android:background="@drawable/gradient_button_bkg"
  52. android:clickable="true"
  53. android:focusable="true"
  54. android:visibility="visible"
  55. app:layout_constraintBottom_toBottomOf="parent"
  56. app:layout_constraintEnd_toEndOf="parent"
  57. app:layout_constraintStart_toStartOf="parent"
  58. app:layout_constraintTop_toTopOf="@+id/iv_login_bkg"
  59. app:layout_constraintVertical_bias="0.65">
  60.  
  61. <Button
  62. style="@style/ClickableItem.Button"
  63. android:layout_width="wrap_content"
  64. android:layout_height="wrap_content"
  65. android:background="@android:color/transparent"
  66. android:clickable="false"
  67. android:paddingStart="70dp"
  68. android:paddingLeft="70dp"
  69. android:paddingTop="@dimen/spacing_15dp"
  70. android:paddingEnd="@dimen/spacing_30dp"
  71. android:paddingRight="@dimen/spacing_30dp"
  72. android:paddingBottom="@dimen/spacing_15dp"
  73. android:text="@string/login_from_instagram"
  74. android:textColor="@color/white"
  75. android:textSize="@dimen/text_size_medium"
  76. android:textStyle="normal" />
  77.  
  78. <ImageView
  79. android:layout_width="@dimen/button_drawable_size"
  80. android:layout_height="@dimen/button_drawable_size"
  81. android:layout_gravity="center_vertical"
  82. android:layout_marginStart="@dimen/spacing_20dp"
  83. android:layout_marginLeft="@dimen/spacing_20dp"
  84. android:src="@drawable/ic_login_from_inst"
  85. android:tint="@color/white" />
  86.  
  87. </FrameLayout>
  88.  
  89. <android.support.constraint.ConstraintLayout
  90. android:id="@+id/vg_login_form"
  91. android:layout_width="match_parent"
  92. android:layout_height="wrap_content"
  93. android:visibility="gone"
  94. android:paddingBottom="@dimen/spacing_10dp"
  95. app:layout_constraintBottom_toBottomOf="parent"
  96. app:layout_constraintTop_toBottomOf="@+id/imageView2">
  97.  
  98. <android.support.design.widget.TextInputLayout
  99. android:id="@+id/il_login"
  100. android:layout_width="match_parent"
  101. android:layout_height="wrap_content"
  102. android:layout_marginStart="@dimen/spacing_20dp"
  103. android:layout_marginLeft="@dimen/spacing_20dp"
  104. android:layout_marginTop="@dimen/spacing_15dp"
  105. android:layout_marginEnd="@dimen/spacing_20dp"
  106. android:layout_marginRight="@dimen/spacing_20dp"
  107. android:theme="@style/TextCommon.TextInputLayout"
  108. android:hint="@string/hint_login"
  109. app:layout_constraintEnd_toEndOf="parent"
  110. app:layout_constraintStart_toStartOf="parent">
  111.  
  112. <EditText
  113. android:id="@+id/et_login"
  114. android:layout_width="match_parent"
  115. android:layout_height="wrap_content"
  116. android:nextFocusDown="@+id/et_password"
  117. android:paddingBottom="@dimen/spacing_10dp"
  118. android:singleLine="true"
  119. android:theme="@style/EditText.SignUp" />
  120.  
  121. </android.support.design.widget.TextInputLayout>
  122.  
  123. <android.support.design.widget.TextInputLayout
  124. android:id="@+id/il_password"
  125. android:layout_width="match_parent"
  126. android:layout_height="wrap_content"
  127. android:layout_marginStart="@dimen/spacing_20dp"
  128. android:layout_marginLeft="@dimen/spacing_20dp"
  129. android:layout_marginTop="@dimen/spacing_5dp"
  130. android:layout_marginEnd="@dimen/spacing_20dp"
  131. android:layout_marginRight="@dimen/spacing_20dp"
  132. android:theme="@style/TextCommon.TextInputLayout"
  133. app:layout_constraintEnd_toEndOf="parent"
  134. android:hint="@string/hint_password"
  135. app:layout_constraintStart_toStartOf="parent"
  136. app:layout_constraintTop_toBottomOf="@+id/il_login"
  137. app:passwordToggleEnabled="true"
  138. app:passwordToggleTint="@color/darkSlateOpacity40">
  139.  
  140. <EditText
  141. android:id="@+id/et_password"
  142. android:layout_width="match_parent"
  143. android:layout_height="wrap_content"
  144. android:inputType="textPassword"
  145. android:paddingBottom="@dimen/spacing_10dp"
  146. android:theme="@style/EditText.SignUp" />
  147.  
  148. </android.support.design.widget.TextInputLayout>
  149.  
  150. <android.support.v7.widget.AppCompatCheckBox
  151. android:id="@+id/sw_policy"
  152. android:layout_width="wrap_content"
  153. android:layout_height="wrap_content"
  154. android:layout_marginTop="@dimen/spacing_10dp"
  155. android:checked="true"
  156. app:layout_constraintStart_toStartOf="@+id/il_password"
  157. app:layout_constraintTop_toBottomOf="@+id/il_password" />
  158.  
  159. <TextView
  160. android:id="@+id/tv_policy"
  161. android:layout_width="wrap_content"
  162. android:layout_height="wrap_content"
  163. android:layout_marginStart="@dimen/spacing_10dp"
  164. android:text="@string/i_agree_policy"
  165. app:layout_constraintBottom_toBottomOf="@+id/sw_policy"
  166. app:layout_constraintStart_toEndOf="@+id/sw_policy"
  167. app:layout_constraintTop_toTopOf="@+id/sw_policy" />
  168.  
  169. <Button
  170. android:id="@+id/btn_login"
  171. style="@style/ClickableItem.Button"
  172. android:layout_width="match_parent"
  173. android:layout_height="wrap_content"
  174. android:layout_marginStart="@dimen/spacing_20dp"
  175. android:layout_marginLeft="@dimen/spacing_20dp"
  176. android:layout_marginTop="@dimen/spacing_20dp"
  177. android:layout_marginEnd="@dimen/spacing_20dp"
  178. android:layout_marginRight="@dimen/spacing_20dp"
  179. android:background="@drawable/solid_button_bkg"
  180. android:text="@string/login"
  181. android:textColor="@color/darkSlate"
  182. android:textSize="@dimen/text_size_normal"
  183. app:layout_constraintEnd_toEndOf="parent"
  184. app:layout_constraintStart_toStartOf="parent"
  185. app:layout_constraintTop_toBottomOf="@+id/sw_policy" />
  186.  
  187. </android.support.constraint.ConstraintLayout>
  188. </android.support.constraint.ConstraintLayout>
  189. </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement