Advertisement
Guest User

Untitled

a guest
Aug 24th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.43 KB | None | 0 0
  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. android:background="@drawable/background_11"
  8. tools:context=".login.LoginActivity"
  9. >
  10.  
  11. <ImageView
  12. android:id="@+id/logo"
  13. android:layout_width="381dp"
  14. android:layout_height="156dp"
  15. android:src="@drawable/logo"
  16. tools:ignore="ContentDescription"
  17. app:layout_constraintTop_toBottomOf="parent"
  18. app:layout_constraintLeft_toLeftOf="parent"
  19. app:layout_constraintRight_toRightOf="parent"
  20. android:layout_marginTop="-480dp"
  21. android:layout_marginRight="10dp"
  22. android:layout_marginLeft="10dp"
  23. android:layout_marginStart="10dp"
  24. android:layout_marginEnd="10dp"
  25. app:layout_constraintHorizontal_bias="0.47" />
  26.  
  27. <ImageView
  28. android:id="@+id/emptyImage"
  29. android:layout_width="384dp"
  30. android:layout_height="445dp"
  31. android:layout_marginBottom="0dp"
  32. android:layout_marginRight="0dp"
  33. android:layout_marginTop="0dp"
  34. android:background="@color/TICK_BACKGROUND"
  35. app:layout_constraintBottom_toBottomOf="parent"
  36. app:layout_constraintRight_toRightOf="parent"
  37. app:layout_constraintTop_toBottomOf="@+id/logo"
  38. app:layout_constraintVertical_bias="0.0"
  39. app:srcCompat="@drawable/empty" />
  40.  
  41. <EditText
  42. android:id="@+id/login_usernameTextField"
  43. android:layout_width="291dp"
  44. android:layout_height="63dp"
  45. android:layout_marginLeft="8dp"
  46. android:layout_marginRight="8dp"
  47. android:layout_marginTop="80dp"
  48. android:background="@drawable/rounded_text_edit_shape"
  49. android:ems="10"
  50. android:hint="Username"
  51. android:inputType="textPersonName"
  52. android:textColor="@color/INPUT_TEXT_COLOR"
  53. android:textColorHint="@color/iron"
  54. android:textCursorDrawable="@null"
  55. app:layout_constraintHorizontal_bias="0.506"
  56. app:layout_constraintLeft_toLeftOf="parent"
  57. app:layout_constraintRight_toRightOf="parent"
  58. app:layout_constraintTop_toBottomOf="@+id/logo"
  59. android:layout_marginStart="8dp"
  60. android:layout_marginEnd="8dp" />
  61.  
  62. <EditText
  63. android:id="@+id/login_passwordTextField"
  64. android:layout_width="291dp"
  65. android:layout_height="63dp"
  66. android:layout_marginLeft="8dp"
  67. android:layout_marginRight="8dp"
  68. android:layout_marginTop="-38dp"
  69. android:background="@drawable/rounded_text_edit_shape"
  70. android:ems="10"
  71. android:hint="Password"
  72. android:textCursorDrawable="@null"
  73. android:inputType="textPassword"
  74. android:textColor="@color/INPUT_TEXT_COLOR"
  75. android:textColorHint="@color/iron"
  76. app:layout_constraintHorizontal_bias="0.506"
  77. app:layout_constraintLeft_toLeftOf="parent"
  78. app:layout_constraintRight_toRightOf="parent"
  79. app:layout_constraintTop_toBottomOf="@+id/login_usernameTextField"
  80. android:layout_marginStart="8dp"
  81. android:layout_marginEnd="8dp" />
  82.  
  83. <Button
  84. android:id="@+id/login_loginButton"
  85. android:onClick="loginButtonClick"
  86. android:layout_width="wrap_content"
  87. android:layout_height="wrap_content"
  88. android:layout_marginLeft="8dp"
  89. android:layout_marginRight="8dp"
  90. android:layout_marginTop="30dp"
  91. android:background="@drawable/rounded_button_shape"
  92. android:text="Log In"
  93. android:textColor="@color/white"
  94. app:layout_constraintLeft_toLeftOf="parent"
  95. app:layout_constraintRight_toRightOf="parent"
  96. app:layout_constraintTop_toBottomOf="@+id/login_passwordTextField"
  97. app:layout_constraintBottom_toBottomOf="parent"
  98. android:layout_marginBottom="8dp"
  99. app:layout_constraintVertical_bias="0.28"
  100. android:layout_marginStart="8dp"
  101. android:layout_marginEnd="8dp" />
  102.  
  103. </android.support.constraint.ConstraintLayout>
  104.  
  105. <?xml version="1.0" encoding="utf-8"?>
  106. <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  107. xmlns:app="http://schemas.android.com/apk/res-auto"
  108. xmlns:tools="http://schemas.android.com/tools"
  109. android:layout_width="match_parent" android:layout_height="match_parent">
  110.  
  111.  
  112.  
  113.  
  114. <ImageView
  115. android:id="@+id/logo"
  116. android:layout_width="wrap_content"
  117. android:layout_height="wrap_content"
  118. android:layout_alignParentTop="true"
  119. app:srcCompat="@drawable/logo_2"
  120. app:layout_constraintTop_toTopOf="parent"
  121. android:layout_marginTop="-1dp"
  122. android:layout_marginLeft="0dp"
  123. app:layout_constraintLeft_toLeftOf="parent"
  124. android:layout_marginRight="8dp"
  125. app:layout_constraintRight_toRightOf="parent"
  126. app:layout_constraintHorizontal_bias="0.0" />
  127.  
  128. <android.support.constraint.ConstraintLayout
  129. android:layout_width="0dp"
  130. android:layout_height="0dp"
  131. android:background="@drawable/background_11"
  132. app:layout_constraintTop_toBottomOf="@id/logo"
  133. android:layout_marginLeft="8dp"
  134. app:layout_constraintLeft_toLeftOf="parent">
  135.  
  136. </android.support.constraint.ConstraintLayout>
  137. </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement