nafiefn_10

activity_main.xml

May 1st, 2021
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.97 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.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_margin="20dp"
  7.    android:layout_height="match_parent"
  8.    tools:context=".MainActivity">
  9.  
  10.     <TextView
  11.        android:id="@+id/textView"
  12.        android:layout_width="wrap_content"
  13.        android:layout_height="wrap_content"
  14.        android:layout_marginLeft="8dp"
  15.        android:layout_marginEnd="84dp"
  16.        android:layout_marginRight="84dp"
  17.        android:gravity="center_horizontal"
  18.        android:text="LOGIN ACOUNT"
  19.        android:textAlignment="center"
  20.        android:textSize="30sp"
  21.        app:layout_constraintBottom_toBottomOf="parent"
  22.        app:layout_constraintEnd_toEndOf="parent"
  23.        app:layout_constraintLeft_toLeftOf="parent"
  24.        app:layout_constraintTop_toTopOf="parent"
  25.        app:layout_constraintVertical_bias="0.055" />
  26.  
  27.     <Button
  28.        android:id="@+id/button"
  29.        android:layout_width="wrap_content"
  30.        android:layout_height="wrap_content"
  31.        android:layout_marginStart="8dp"
  32.        android:layout_marginLeft="8dp"
  33.        android:layout_marginEnd="8dp"
  34.        android:layout_marginRight="8dp"
  35.        android:text="REGISTTER"
  36.        app:layout_constraintBottom_toBottomOf="parent"
  37.        app:layout_constraintEnd_toEndOf="parent"
  38.        app:layout_constraintHorizontal_bias="0.73"
  39.        app:layout_constraintStart_toStartOf="parent"
  40.        app:layout_constraintTop_toTopOf="parent"
  41.        app:layout_constraintVertical_bias="0.676"/>
  42.  
  43.     <ImageView
  44.        android:id="@+id/imageView"
  45.        android:layout_width="201dp"
  46.        android:layout_height="203dp"
  47.        app:layout_constraintBottom_toBottomOf="parent"
  48.        app:layout_constraintEnd_toEndOf="parent"
  49.        app:layout_constraintStart_toStartOf="parent"
  50.        app:layout_constraintTop_toTopOf="parent"
  51.        app:layout_constraintVertical_bias="0.198"
  52.        app:srcCompat="@drawable/pinoot640"
  53.        tools:ignore="VectorDrawableCompat" />
  54.  
  55.     <Button
  56.        android:id="@+id/button2"
  57.        android:layout_width="wrap_content"
  58.        android:layout_height="wrap_content"
  59.        android:text="LOGIN"
  60.        app:layout_constraintBottom_toBottomOf="parent"
  61.        app:layout_constraintEnd_toEndOf="parent"
  62.        app:layout_constraintHorizontal_bias="0.279"
  63.        app:layout_constraintStart_toStartOf="parent"
  64.        app:layout_constraintTop_toTopOf="parent"
  65.        app:layout_constraintVertical_bias="0.676"/>
  66.     <EditText
  67.        android:hint="Username"
  68.        android:textAlignment="center"
  69.        android:id="@+id/editText"
  70.        android:layout_width="wrap_content"
  71.        android:layout_height="wrap_content"
  72.        android:ems="10"
  73.        android:inputType="textEmailAddress"
  74.        app:layout_constraintBottom_toBottomOf="parent"
  75.        app:layout_constraintEnd_toEndOf="parent"
  76.        app:layout_constraintHorizontal_bias="0.496"
  77.        app:layout_constraintStart_toStartOf="parent"
  78.        app:layout_constraintTop_toTopOf="parent"
  79.        android:gravity="center_horizontal" />
  80.     <EditText
  81.        android:id="@+id/editText2"
  82.        android:hint="Password"
  83.        android:textAlignment="center"
  84.        android:layout_width="wrap_content"
  85.        android:layout_height="wrap_content"
  86.        android:ems="10"
  87.        android:inputType="textPassword"
  88.        app:layout_constraintBottom_toBottomOf="parent"
  89.        app:layout_constraintEnd_toEndOf="parent"
  90.        app:layout_constraintHorizontal_bias="0.49"
  91.        app:layout_constraintStart_toStartOf="parent"
  92.        app:layout_constraintTop_toBottomOf="@+id/editText"
  93.        app:layout_constraintVertical_bias="0.035"
  94.        android:gravity="center_horizontal" />
  95.  
  96. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment