fauzie811

login_screen.xml

Aug 4th, 2017
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.31 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.  
  8.  
  9.     <ImageView
  10.        android:id="@+id/imageView"
  11.        android:layout_width="80dp"
  12.        android:layout_height="80dp"
  13.        android:scaleType="centerCrop"
  14.        app:srcCompat="@drawable/icon_app_2"
  15.        android:layout_marginLeft="36dp"
  16.        app:layout_constraintLeft_toLeftOf="parent"
  17.        app:layout_constraintTop_toTopOf="parent"
  18.        android:layout_marginTop="80dp" />
  19.  
  20.     <TextView
  21.        android:textStyle="bold"
  22.        android:textColor="#4a4a4a"
  23.        android:textSize="32sp"
  24.        android:id="@+id/textView"
  25.        android:layout_width="wrap_content"
  26.        android:layout_height="wrap_content"
  27.        android:text="Welcome Back,"
  28.        android:layout_marginLeft="36dp"
  29.        app:layout_constraintLeft_toLeftOf="parent"
  30.        android:layout_marginTop="36dp"
  31.        app:layout_constraintTop_toBottomOf="@+id/imageView" />
  32.  
  33.     <TextView
  34.        android:textColor="#bdbdbd"
  35.        android:textSize="16sp"
  36.        android:id="@+id/textView2"
  37.        android:layout_width="wrap_content"
  38.        android:layout_height="wrap_content"
  39.        android:text="Please to Log In to acces."
  40.        android:layout_marginLeft="36dp"
  41.        app:layout_constraintLeft_toLeftOf="parent"
  42.        android:layout_marginTop="12dp"
  43.        app:layout_constraintTop_toBottomOf="@+id/textView" />
  44.  
  45.     <EditText
  46.        android:background="@drawable/username"
  47.        android:id="@+id/editText"
  48.        android:layout_width="0dp"
  49.        android:layout_height="45dp"
  50.        android:paddingLeft="60dp"
  51.        android:inputType="textPersonName"
  52.        android:text="Username"
  53.        android:layout_marginLeft="36dp"
  54.        app:layout_constraintLeft_toLeftOf="parent"
  55.        android:layout_marginRight="36dp"
  56.        app:layout_constraintRight_toRightOf="parent"
  57.        android:layout_marginTop="36dp"
  58.        app:layout_constraintTop_toBottomOf="@+id/textView2" />
  59.  
  60.     <EditText
  61.        android:background="@drawable/password"
  62.        android:id="@+id/editText2"
  63.        android:layout_width="0dp"
  64.        android:layout_height="45dp"
  65.        android:paddingLeft="60dp"
  66.        android:inputType="textPassword"
  67.        android:text="Username"
  68.        android:layout_marginLeft="36dp"
  69.        app:layout_constraintLeft_toLeftOf="parent"
  70.        android:layout_marginRight="36dp"
  71.        app:layout_constraintRight_toRightOf="parent"
  72.        android:layout_marginTop="16dp"
  73.        app:layout_constraintTop_toBottomOf="@+id/editText" />
  74.  
  75.     <Button
  76.        android:id="@+id/button"
  77.        android:layout_width="0dp"
  78.        android:layout_height="55dp"
  79.        android:background="@drawable/btn_sign_in"
  80.        android:layout_marginLeft="26dp"
  81.        app:layout_constraintLeft_toLeftOf="parent"
  82.        android:layout_marginRight="26dp"
  83.        app:layout_constraintRight_toRightOf="parent"
  84.        android:layout_marginTop="36dp"
  85.        app:layout_constraintTop_toBottomOf="@+id/editText2" />
  86. </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment