Write a program to create a login form for social networking website.

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:tools="http://schemas.android.com/tools"

    android:layout_width="match_parent"

    android:layout_height="match_parent"

    tools:context=".Main16Activity"

    android:orientation="vertical"

    android:background="#fff">

<ImageView

    android:layout_marginTop="100dp"

    android:layout_gravity="center_horizontal"

    android:layout_width="100dp"

    android:layout_height="100dp"

    android:src="@drawable/pinterest"

    />

    <TextView

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:text="Welcome to Pinterest"

        android:textSize="40dp"

        android:textColor="#000"

        android:textStyle="bold"        android:layout_gravity="center_horizontal"/>

    <EditText

        android:layout_marginTop="30dp"

        android:layout_width="350dp"

        android:layout_height="40dp"

        android:hint="Email"

        android:background="@drawable/round_button"

        android:padding="10dp"     android:layout_gravity="center_horizontal"></EditText>

    <EditText

        android:layout_marginTop="20dp"

        android:layout_width="350dp"

        android:layout_height="40dp"

        android:hint="Password"        android:background="@drawable/round_button"

        android:padding="10dp"        android:layout_gravity="center_horizontal"></EditText>

    <TextView

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:textSize="20dp"

        android:text="Forgot Password?"

        android:textStyle="bold"

        android:layout_marginLeft="130dp"/>

    <Button

        android:layout_width="350dp"

        android:layout_height="wrap_content"

        android:text="Log in"

        android:background="#EE1B22"

        android:layout_marginTop="60dp"

        android:textColor="#fff"        android:layout_gravity="center_horizontal"

        android:textStyle="bold"

        android:textSize="18dp"

        />

    <TextView

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:text="OR"

        android:textSize="20dp"

        android:layout_marginTop="15dp"     android:layout_gravity="center_horizontal"

        android:textColor="#000" />

    <LinearLayout

        android:layout_width="match_parent"

        android:layout_height="wrap_content"

        android:orientation="horizontal"

        android:gravity="center_horizontal">

        <ImageView

            android:layout_width="30dp"

            android:layout_height="30dp"

            android:src="@drawable/facebook"

            android:layout_marginTop="10dp"/>

        <TextView

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:text="Login with facebook"

            android:layout_marginLeft="10dp"

            android:textColor="#1877F2"

            android:layout_marginTop="15dp"

            android:textSize="20dp"/>

    </LinearLayout>

    <TextView

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:text="Not on pinterest yet? Sign Up"

        android:layout_marginTop="50dp"

        android:layout_gravity="center_horizontal"

        android:textStyle="bold"

        android:textSize="20dp"/>

</LinearLayout>


Output:


 







Comments

Popular posts from this blog

Write a Program to accept and display the student information

Write a Program to create a toggle button to display the ON/OFF Bluetooth on the display screen.

Write a program to create a first display screen on any search engine using auto complete text View