Advertisement
Guest User

Untitled

a guest
Apr 11th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.77 KB | None | 0 0
  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. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:fitsSystemWindows="false"
  7. android:orientation="vertical">
  8.  
  9. <ImageView
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. android:scaleType="centerCrop"
  13. android:src="@drawable/image_26" />
  14.  
  15. <View
  16. android:layout_width="match_parent"
  17. android:layout_height="match_parent"
  18. android:background="@color/cyan_800_overlay" />
  19.  
  20. <LinearLayout
  21. android:layout_width="330dp"
  22. android:layout_height="match_parent"
  23. android:layout_centerInParent="true"
  24. android:orientation="vertical"
  25. android:padding="@dimen/spacing_large">
  26.  
  27. <View
  28. android:layout_width="0dp"
  29. android:layout_height="50dp" />
  30.  
  31. <TextView
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:layout_gravity="center_horizontal"
  35. android:layout_marginTop="@dimen/spacing_medium"
  36. android:text="Welcome!"
  37. android:textAppearance="@style/Base.TextAppearance.AppCompat.Display2"
  38. android:textColor="@android:color/white" />
  39.  
  40. <TextView
  41. android:layout_width="wrap_content"
  42. android:layout_height="wrap_content"
  43. android:layout_gravity="center_horizontal"
  44. android:layout_marginTop="@dimen/spacing_medium"
  45. android:fontFamily="sans-serif-light"
  46. android:text="Hope you enjoy the stay"
  47. android:textAppearance="@style/Base.TextAppearance.AppCompat.Large"
  48. android:textColor="@android:color/white" />
  49.  
  50. <View
  51. android:layout_width="0dp"
  52. android:layout_height="0dp"
  53. android:layout_weight="1" />
  54.  
  55. <View
  56. android:layout_width="50dp"
  57. android:layout_height="3dp"
  58. android:layout_gravity="center_horizontal"
  59. android:background="@android:color/white" />
  60.  
  61. <TextView
  62. android:layout_width="wrap_content"
  63. android:layout_height="wrap_content"
  64. android:layout_gravity="center_horizontal"
  65. android:layout_marginTop="@dimen/spacing_middle"
  66. android:text="Log In"
  67. android:textAppearance="@style/Base.TextAppearance.AppCompat.Medium"
  68. android:textColor="@android:color/white"
  69. android:textStyle="bold" />
  70.  
  71. <View
  72. android:layout_width="0dp"
  73. android:layout_height="0dp"
  74. android:layout_weight="1" />
  75.  
  76. <android.support.design.widget.TextInputLayout
  77. android:layout_width="match_parent"
  78. android:layout_height="wrap_content"
  79. android:theme="@style/EditText.White.Hint">
  80.  
  81. <android.support.design.widget.TextInputEditText
  82. android:layout_width="match_parent"
  83. android:layout_height="wrap_content"
  84. android:layout_marginLeft="-4dp"
  85. android:layout_marginRight="-4dp"
  86. android:hint="USERNAME"
  87. android:inputType="text"
  88. android:maxLength="50"
  89. android:maxLines="1"
  90. android:singleLine="true"
  91. android:textColor="@color/grey_10"
  92. android:theme="@style/EditText.White" />
  93.  
  94. </android.support.design.widget.TextInputLayout>
  95.  
  96.  
  97. <View
  98. android:layout_width="0dp"
  99. android:layout_height="@dimen/spacing_mlarge" />
  100.  
  101. <android.support.design.widget.TextInputLayout
  102. android:layout_width="match_parent"
  103. android:layout_height="wrap_content"
  104. android:theme="@style/EditText.White.Hint">
  105.  
  106. <android.support.design.widget.TextInputEditText
  107. android:layout_width="match_parent"
  108. android:layout_height="wrap_content"
  109. android:layout_marginLeft="-4dp"
  110. android:layout_marginRight="-4dp"
  111. android:hint="PASSWORD"
  112. android:inputType="textPassword"
  113. android:maxLength="50"
  114. android:maxLines="1"
  115. android:singleLine="true"
  116. android:textColor="@color/grey_10"
  117. android:theme="@style/EditText.White" />
  118.  
  119. </android.support.design.widget.TextInputLayout>
  120.  
  121.  
  122. <View
  123. android:layout_width="0dp"
  124. android:layout_height="@dimen/spacing_mxlarge" />
  125.  
  126. <RelativeLayout
  127. android:layout_width="wrap_content"
  128. android:layout_height="wrap_content"
  129. android:layout_gravity="center_horizontal">
  130.  
  131. <android.support.design.widget.FloatingActionButton
  132. android:id="@+id/fab"
  133. android:layout_width="wrap_content"
  134. android:layout_height="wrap_content"
  135. android:clickable="true"
  136. android:textStyle="bold"
  137. android:tint="@color/cyan_800"
  138. app:backgroundTint="@android:color/white"
  139. app:fabSize="normal"
  140. app:rippleColor="@color/cyan_800"
  141. app:srcCompat="@drawable/ic_arrow_right" />
  142.  
  143.  
  144. <ProgressBar
  145. android:id="@+id/progress_bar"
  146. android:layout_width="wrap_content"
  147. android:layout_height="wrap_content"
  148. android:layout_centerInParent="true"
  149. android:theme="@style/ProgressBar.White"
  150. android:visibility="gone" />
  151.  
  152. </RelativeLayout>
  153.  
  154. <View
  155. android:layout_width="0dp"
  156. android:layout_height="0dp"
  157. android:layout_weight="1" />
  158.  
  159. <LinearLayout
  160. android:id="@+id/sign_up_for_account"
  161. android:layout_width="match_parent"
  162. android:layout_height="wrap_content"
  163. android:layout_marginTop="@dimen/spacing_medium"
  164. android:gravity="center"
  165. android:orientation="horizontal">
  166.  
  167. <TextView
  168. android:layout_width="wrap_content"
  169. android:layout_height="wrap_content"
  170. android:text="Sign up for an account?"
  171. android:textAppearance="@style/Base.TextAppearance.AppCompat.Subhead"
  172. android:textColor="@color/grey_10" />
  173.  
  174.  
  175. </LinearLayout>
  176.  
  177. <View
  178. android:layout_width="0dp"
  179. android:layout_height="@dimen/spacing_medium" />
  180.  
  181. </LinearLayout>
  182.  
  183. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement