0% found this document useful (0 votes)
32 views2 pages

Android Login Screen XML Layout

The document is an XML layout file for a login screen in an Android application. It includes a title, input fields for username and password, and buttons for logging in and signing up, along with a 'Forgot password?' text. The layout utilizes a gradient background and various styling attributes for a visually appealing interface.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views2 pages

Android Login Screen XML Layout

The document is an XML layout file for a login screen in an Android application. It includes a title, input fields for username and password, and buttons for logging in and signing up, along with a 'Forgot password?' text. The layout utilizes a gradient background and various styling attributes for a visually appealing interface.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

<?xml version="1.0" encoding="utf-8"?

>
<RelativeLayout xmlns:android="[Link]
xmlns:app="[Link]
xmlns:tools="[Link]
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".LogIn"
android:background="@drawable/gradient"
>

<TextView
android:id="@+id/log"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="25dp"
android:layout_marginTop="95dp"
android:layout_marginEnd="25dp"
android:layout_marginBottom="25dp"
android:gravity="center"
android:fontFamily="@font/open_sans_extrabold"
android:text="LOG IN"
android:textColor="@color/white"
android:textSize="35sp" />

<EditText
android:id="@+id/username"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/log"
android:layout_marginStart="10dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="10dp"
android:background="#30ffffff"
android:drawableLeft="@drawable/ic_baseline_person_outline_24"
android:drawablePadding="20dp"
android:hint="Username"
android:padding="20dp"
android:textSize="16dp"
android:textColorHint="@color/white" />
<EditText
android:id="@+id/PassWord"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/username"
android:background="#30ffffff"
android:inputType="textPassword"
android:hint="Password"
android:textColorHint="@color/white"
android:layout_margin="10dp"
android:padding="20dp"
android:drawableLeft="@drawable/ic_baseline_lock_24"
android:drawablePadding="20dp"
android:textSize="16dp"
/>

<Button
android:id="@+id/LogIn"
android:layout_width="match_parent"
android:layout_height="45dp"
android:layout_below="@id/PassWord"
android:layout_marginStart="20dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="20dp"
android:layout_marginBottom="20dp"
android:background="@drawable/button_started"
android:backgroundTint="@color/g4"
android:paddingTop="8dp"
android:text="LOGIN"
android:textAlignment="center"
android:textColor="@color/white"
android:textSize="16dp" />
<Button
android:id="@+id/Signup"
android:layout_width="match_parent"
android:layout_height="45dp"
android:layout_below="@id/LogIn"
android:layout_marginStart="20dp"
android:layout_marginTop="5dp"
android:layout_marginEnd="20dp"
android:layout_marginBottom="20dp"
android:background="@drawable/button_started"
android:backgroundTint="@color/g4"
android:paddingTop="9dp"
android:text="SIGN UP"
android:textAlignment="center"
android:textColor="@color/white"
android:textSize="16dp" />

<TextView
android:id="@+id/forgotP"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/Signup"
android:layout_centerHorizontal="true"
android:paddingTop="5dp"
android:text="Forgot password?"
android:textSize="12sp"
android:textColor="@color/white" />

</RelativeLayout>

You might also like