Advertisement
Guest User

Untitled

a guest
Jun 21st, 2016
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.49 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:id="@+id/constraintLayout">
  8.  
  9.     <ImageView
  10.        android:src="@drawable/logo"
  11.        android:layout_width="0dp"
  12.        android:layout_height="0dp"
  13.        android:id="@+id/logo"
  14.        tools:layout_editor_absoluteX="96dp"
  15.        app:layout_constraintTop_toTopOf="@+id/constraintLayout"
  16.        android:layout_marginTop="16dp"
  17.        app:layout_constraintBottom_toTopOf="@+id/guideline8" />
  18.  
  19.     <android.support.constraint.Guideline
  20.        android:layout_width="wrap_content"
  21.        android:layout_height="wrap_content"
  22.        android:id="@+id/guideline6"
  23.        android:orientation="vertical"
  24.        tools:layout_editor_absoluteX="96dp"
  25.        tools:layout_editor_absoluteY="0dp"
  26.        app:relativePercent="25" />
  27.  
  28.     <android.support.constraint.Guideline
  29.        android:layout_width="wrap_content"
  30.        android:layout_height="wrap_content"
  31.        android:id="@+id/guideline7"
  32.        android:orientation="vertical"
  33.        tools:layout_editor_absoluteX="288dp"
  34.        tools:layout_editor_absoluteY="0dp"
  35.        app:relativePercent="75" />
  36.  
  37.     <android.support.constraint.Guideline
  38.        android:layout_width="wrap_content"
  39.        android:layout_height="wrap_content"
  40.        android:id="@+id/guideline8"
  41.        android:orientation="horizontal"
  42.        tools:layout_editor_absoluteX="0dp"
  43.        tools:layout_editor_absoluteY="141dp"
  44.        app:relativePercent="25" />
  45.  
  46.     <ImageView
  47.        android:src="@drawable/login"
  48.        android:id="@+id/imageView3"
  49.        android:layout_width="wrap_content"
  50.        android:layout_height="42dp"
  51.        app:layout_constraintLeft_toLeftOf="@+id/constraintLayout"
  52.        android:layout_marginStart="16dp"
  53.        app:layout_constraintTop_toTopOf="@+id/email"
  54.        app:layout_constraintBottom_toBottomOf="@+id/email" />
  55.  
  56.  
  57.     <android.support.design.widget.TextInputLayout
  58.        android:layout_width="match_parent"
  59.        android:layout_height="match_parent">
  60.         <AutoCompleteTextView
  61.            android:layout_width="0dp"
  62.            android:layout_height="0dp"
  63.            android:singleLine="true"
  64.            android:id="@+id/email"
  65.            android:hint="@string/prompt_email"
  66.            app:layout_constraintLeft_toRightOf="@+id/imageView3"
  67.            android:layout_marginStart="8dp"
  68.            app:layout_constraintTop_toBottomOf="@+id/logo"
  69.            android:layout_marginTop="16dp"
  70.            app:layout_constraintRight_toRightOf="@+id/constraintLayout"
  71.            android:layout_marginEnd="16dp" />
  72.     </android.support.design.widget.TextInputLayout>
  73.  
  74.     <ImageView
  75.        android:src="@drawable/pass"
  76.        android:layout_width="0dp"
  77.        android:layout_height="0dp"
  78.        android:id="@+id/imageView4"
  79.        app:layout_constraintLeft_toLeftOf="@+id/constraintLayout"
  80.        android:layout_marginStart="16dp"
  81.        app:layout_constraintTop_toTopOf="@+id/password"
  82.        app:layout_constraintBottom_toBottomOf="@+id/password" />
  83.  
  84.     <android.support.design.widget.TextInputEditText
  85.        android:layout_width="0dp"
  86.        android:layout_height="0dp"
  87.        android:singleLine="true"
  88.        android:id="@+id/password"
  89.        android:hint="@string/prompt_password"
  90.        app:layout_constraintLeft_toRightOf="@+id/imageView4"
  91.        android:layout_marginStart="8dp"
  92.        app:layout_constraintTop_toBottomOf="@+id/email"
  93.        android:layout_marginTop="16dp"
  94.        app:layout_constraintRight_toRightOf="@+id/constraintLayout"
  95.        android:layout_marginEnd="16dp"
  96.        app:layout_constraintHorizontal_bias="0.29" />
  97.  
  98.     <Button
  99.        android:text="Button"
  100.        android:layout_width="0dp"
  101.        android:layout_height="0dp"
  102.        android:id="@+id/email_sign_in_button"
  103.        app:layout_constraintLeft_toLeftOf="@+id/constraintLayout"
  104.        android:layout_marginStart="16dp"
  105.        app:layout_constraintTop_toBottomOf="@+id/password"
  106.        android:layout_marginTop="16dp"
  107.        app:layout_constraintRight_toRightOf="@+id/constraintLayout"
  108.        android:layout_marginEnd="16dp"
  109.        app:layout_constraintHorizontal_bias="0.15" />
  110.  
  111. </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement