Advertisement
LionRawrs

XML file

Mar 28th, 2022
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.93 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_height="match_parent"
  7.    tools:context=".MainActivity">
  8.  
  9.  
  10.     <TextView
  11.        android:id="@+id/txtEmail"
  12.        android:layout_width="wrap_content"
  13.        android:layout_height="wrap_content"
  14.        android:text="E-Mail: "
  15.        app:layout_constraintBottom_toBottomOf="parent"
  16.        app:layout_constraintEnd_toEndOf="parent"
  17.        app:layout_constraintStart_toStartOf="parent"
  18.        app:layout_constraintTop_toBottomOf="@+id/button"
  19.        app:layout_constraintVertical_bias="0.723" />
  20.  
  21.     <TextView
  22.        android:id="@+id/txtLastName"
  23.        android:layout_width="wrap_content"
  24.        android:layout_height="wrap_content"
  25.        android:text="Last Name: "
  26.        app:layout_constraintBottom_toBottomOf="parent"
  27.        app:layout_constraintEnd_toEndOf="parent"
  28.        app:layout_constraintStart_toStartOf="parent"
  29.        app:layout_constraintTop_toBottomOf="@+id/button" />
  30.  
  31.     <EditText
  32.        android:id="@+id/edLastName"
  33.        android:layout_width="wrap_content"
  34.        android:layout_height="wrap_content"
  35.        android:ems="10"
  36.        android:hint="Last Name"
  37.        android:inputType="textPersonName"
  38.        app:layout_constraintBottom_toTopOf="@+id/button"
  39.        app:layout_constraintEnd_toEndOf="parent"
  40.        app:layout_constraintHorizontal_bias="0.552"
  41.        app:layout_constraintStart_toStartOf="parent"
  42.        app:layout_constraintTop_toBottomOf="@+id/edFirstName"
  43.        app:layout_constraintVertical_bias="0.231" />
  44.  
  45.     <Button
  46.        android:id="@+id/button"
  47.        android:layout_width="wrap_content"
  48.        android:layout_height="wrap_content"
  49.        android:onClick="onBtnClick"
  50.        android:text="REGISTER"
  51.        app:layout_constraintBottom_toBottomOf="parent"
  52.        app:layout_constraintEnd_toEndOf="parent"
  53.        app:layout_constraintHorizontal_bias="0.498"
  54.        app:layout_constraintStart_toStartOf="parent"
  55.        app:layout_constraintTop_toTopOf="parent"
  56.        app:layout_constraintVertical_bias="0.565" />
  57.  
  58.     <EditText
  59.        android:id="@+id/edFirstName"
  60.        android:layout_width="wrap_content"
  61.        android:layout_height="wrap_content"
  62.        android:ems="10"
  63.        android:hint="First Name"
  64.        android:inputType="textPersonName"
  65.        app:layout_constraintBottom_toTopOf="@+id/button"
  66.        app:layout_constraintEnd_toEndOf="parent"
  67.        app:layout_constraintHorizontal_bias="0.557"
  68.        app:layout_constraintStart_toStartOf="parent"
  69.        app:layout_constraintTop_toTopOf="parent"
  70.        app:layout_constraintVertical_bias="0.322" />
  71.  
  72.     <EditText
  73.        android:id="@+id/edEmail"
  74.        android:layout_width="wrap_content"
  75.        android:layout_height="wrap_content"
  76.        android:ems="10"
  77.        android:hint="E-Mail"
  78.        android:inputType="textPersonName"
  79.        app:layout_constraintBottom_toTopOf="@+id/button"
  80.        app:layout_constraintEnd_toEndOf="parent"
  81.        app:layout_constraintHorizontal_bias="0.557"
  82.        app:layout_constraintStart_toStartOf="parent"
  83.        app:layout_constraintTop_toTopOf="parent"
  84.        app:layout_constraintVertical_bias="0.832" />
  85.  
  86.     <TextView
  87.        android:id="@+id/txtFirstName"
  88.        android:layout_width="wrap_content"
  89.        android:layout_height="wrap_content"
  90.        android:text="First Name: "
  91.        app:layout_constraintBottom_toBottomOf="parent"
  92.        app:layout_constraintEnd_toEndOf="parent"
  93.        app:layout_constraintStart_toStartOf="parent"
  94.        app:layout_constraintTop_toBottomOf="@+id/button"
  95.        app:layout_constraintVertical_bias="0.291" />
  96.  
  97. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement