<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TextView
android:id="@+id/h1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Login Form"
android:textSize="40dp"
android:gravity="center"
android:padding="10dp"
android:fontFamily="sans-serif-black"
android:background="#01D6F1"
android:textColor="@color/black" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/h1"
android:background="#8600BCD4"/>
<TextView
android:id="@+id/tv1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/h1"
android:layout_marginStart="20dp"
android:layout_marginLeft="20dp"
android:layout_marginBottom="20dp"
android:layout_marginTop="10dp"
android:text="Email"
android:textStyle="bold"
android:textSize="30dp" />
<EditText
android:id="@+id/ed1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter email"
android:layout_marginTop="50dp"
android:textSize="20dp"
android:layout_below="@+id/h1"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/tv2"
android:text="Password"
android:textStyle="bold"
android:layout_below="@+id/ed1"
android:textSize="30dp"
android:layout_marginLeft="20dp"
android:layout_marginTop="10dp"/>
<EditText
android:id="@+id/ed2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Password"
android:layout_marginTop="50dp"
android:textSize="20dp"
android:layout_below="@+id/ed1"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Login"
android:layout_marginLeft="150dp"
android:textColor="@color/black"
android:id="@+id/btn_submit"
android:layout_below="@+id/ed2"
android:layout_marginTop="30dp"
android:gravity="center"
android:backgroundTint="#01D6F1"
/>
</RelativeLayout>
Comments
Post a Comment