Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

FACEBOOK.

XML

<?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:layout_width="match_parent"
android:layout_height="match_parent"
android:text="facebook"
android:textColor="@color/purple_700"
android:textSize="50dp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<ImageView
android:layout_width="450dp"
android:layout_height="match_parent"
android:src="@drawable/fb"/>

<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Phone number or email address"
android:layout_marginTop="10dp"
android:textAlignment="center"
android:id="@+id/emailorphn"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Password"
android:layout_below="@+id/emailorphn"
android:layout_marginTop="10dp"
android:textAlignment="center"
android:inputType="textPassword"
android:id="@+id/pass"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="LOGIN"
android:layout_below="@+id/pass"
android:layout_marginTop="10dp"
android:id="@+id/login"
android:backgroundTint="#0B2EED"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="forgot password?"
android:layout_below="@+id/login"
android:layout_marginTop="10dp"
android:textAlignment="center"
android:id="@+id/forgotpassword"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="--------------------------
OR--------------------------"
android:layout_below="@+id/forgotpassword"
android:textAlignment="center"
android:layout_marginTop="20dp"
android:id="@+id/or"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="CREATE NEW FACEBOOK ACCOUNT"
android:layout_below="@+id/or"
android:layout_marginTop="20dp"
android:backgroundTint="#2CCA32"
/>
</RelativeLayout>

You might also like