0% found this document useful (0 votes)
9 views4 pages

Create A Facebook Page Using Relative Layout. Set Properites Using .XML File

Hzjsosn

Uploaded by

fathima
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views4 pages

Create A Facebook Page Using Relative Layout. Set Properites Using .XML File

Hzjsosn

Uploaded by

fathima
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

PROGRAM NO:

DATE:
AIM :Create a FaceBook page using Relative Layout. Set properites
Using .xml file

Xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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" android:background="#3F51B5"
android:orientation="vertical"
tools:context=".MainActivity">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" />

<RelativeLayout
android:layout_width="match_parent"
android:layout_height="144dp">

<ImageView
android:id="@+id/imageView7"
android:layout_width="405dp"
android:layout_height="91dp"
android:layout_alignParentBottom="true"
android:layout_marginStart="16dp"
android:layout_marginBottom="7dp"
app:srcCompat="@drawable/facebook" />
</RelativeLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="90dp"
android:orientation="horizontal"></LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<EditText
android:id="@+id/editTextText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10"
android:hint="Username or Email"
android:inputType="text"
android:textColor="#FFFCFF"
android:textColorHint="#FFFEFE" />
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="35dp"
android:orientation="horizontal" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">

<EditText
android:id="@+id/editTextText3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10"
android:hint="Password"
android:inputType="text"
android:textColorHint="#FFFFFF" />
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="52dp"
android:orientation="horizontal"></LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">

<Button
android:id="@+id/button"
style="@style/Widget.AppCompat.Button.Colored"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:minWidth="30dip" android:text="Log In"
android:textColorHighlight="#213AC6"
android:textColorLink="#1530C3" />
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="86dp"
android:orientation="horizontal"></LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">

<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Sign up for Facebook"
android:textAlignment="center"
android:textColor="#ECE0E0" />
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">

<TextView
android:id="@+id/textView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Forgot Password"
android:textAlignment="center"
android:textColor="#EFE6E6" />
</LinearLayout>
</LinearLayout>
OUTPUT

You might also like