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

10 PR Ex

The document outlines the XML layout for a login form designed for a social networking site, specifically incorporating elements for user input such as username/email and password. It includes an ImageView for the Facebook logo, EditText fields for user credentials, and a login button, all styled with specific colors and margins. Additional TextViews for 'Sign Up for Facebook' and 'Forgot Password?' are also included in the layout.

Uploaded by

Pratiksha Wagh
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)
15 views2 pages

10 PR Ex

The document outlines the XML layout for a login form designed for a social networking site, specifically incorporating elements for user input such as username/email and password. It includes an ImageView for the Facebook logo, EditText fields for user credentials, and a login button, all styled with specific colors and margins. Additional TextViews for 'Sign Up for Facebook' and 'Forgot Password?' are also included in the layout.

Uploaded by

Pratiksha Wagh
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/ 2

1) Write a program to create a login android:maxLines="1"

form for social networking site android:padding="10dp"


Exercise android:textColor="#ffffff"
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:textColorHint="#d3d3d3" />
<!--EditText for user password-->
xmlns:android="http://schemas.android.com/ <EditText
apk/res/android"

android:layout_width="match_parent" android:layout_width="match_parent"

android:layout_height="match_parent"
android:background="#3b5998" android:layout_height="wrap_content"
android:orientation="vertical">
<!--Imageview for Facebook logo android:layout_marginLeft="20dp"
image-->
<ImageView android:layout_marginTop="10dp"
android:layout_width="80dp"
android:layout_marginRight="20dp"
android:layout_height="80dp"
android:backgroundTint="#d3d3d3"
android:layout_gravity="center" android:hint="Password"

android:layout_marginTop="80dp" android:inputType="textPassword"
android:maxLines="1"
android:src="@drawable/fb_logo" /> android:padding="10dp"
<!--EditText for user name or email android:textColor="#ffffff"
address-->
<EditText android:textColorHint="#d3d3d3" />
<!-- Login Button for Facebook Log In--
>
android:layout_width="match_parent" <Button
android:id="@+id/btnLogin"

android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_marginLeft="20dp"

android:layout_marginTop="80dp" android:layout_height="wrap_content"

android:layout_marginRight="20dp" android:layout_marginLeft="20dp"

android:backgroundTint="#d3d3d3" android:layout_marginTop="35dp"
android:hint="Username or
Email" android:layout_marginRight="20dp"

android:backgroundTint="#5c6bc0"
android:inputType="textEmailAddress" android:padding="10dp"
android:text="Log In"
android:textColor="#ffffff" android:layout_gravity="center_horizontal"
android:textSize="16sp"
android:textStyle="bold" /> android:layout_marginTop="15dp"
<RelativeLayout

android:layout_marginBottom="15dp"
android:layout_width="match_parent"
android:text="Forgot Password?"

android:layout_height="match_parent"> android:textColor="#ffffff" />


<LinearLayout </LinearLayout>
</RelativeLayout>
</LinearLayout>
android:layout_width="match_parent" <?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- colors code we are using in this
android:layout_height="wrap_content" project -->
<color
name="purple_200">#3b5998</color>
android:layout_alignParentBottom="true" <color
name="purple_500">#FF6200EE</color>
android:orientation="vertical"> <color
<TextView name="purple_700">#FF3700B3</color>
android:id="@+id/txtSign <color
name="teal_200">#FF03DAC5</color>
<color
android:layout_width="wrap_content" name="teal_700">#FF018786</color>
<color
name="black">#FF000000</color>
android:layout_height="wrap_content <color
name="white">#FFFFFFFF</color>
android:layout_gravity="center_horizontal" </resources>
android:text="Sign Up for
Facebook"

android:textColor="#ffffff" />

<TextView

android:id="@+id/txtForgotPassword"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

You might also like