Write a program to create a login form for student registration form.

 



<?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=".Main17Activity"

    android:orientation="vertical"

    android:background="@color/colorwhite">

    <ImageView

        android:layout_width="200dp"

        android:layout_height="200dp"

        android:src="@drawable/student"        android:layout_gravity="center_horizontal"/>

    <TextView

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:layout_marginTop="20dp"

        android:text="Student Registration form"

        android:textColor="#000"

        android:textSize="30dp"

        android:textStyle="bold"

 android:layout_gravity="center_horizontal"/>

    <LinearLayout

        android:layout_width="match_parent"

        android:layout_height="wrap_content"

        android:orientation="horizontal"

        android:layout_marginTop="20dp">

        <TextView

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:text="Name"

            android:textSize="20dp"

            android:textColor="#058D7F"

            android:textStyle="bold"

            android:layout_marginLeft="30dp"

            />

        <EditText

            android:layout_width="250dp"

            android:layout_height="wrap_content"

            android:layout_marginLeft="20dp"

            android:layout_marginTop="-5dp"

            android:hint="Enter your name"/>

    </LinearLayout>

    <LinearLayout

        android:layout_width="match_parent"

        android:layout_height="wrap_content"

        android:orientation="horizontal"

        android:layout_marginTop="10dp">

        <TextView

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:text="Age"

            android:textSize="20dp"

            android:textColor="#058D7F"

            android:textStyle="bold"

            android:layout_marginLeft="30dp"

            />

        <EditText

            android:layout_width="250dp"

            android:layout_height="wrap_content"

            android:layout_marginLeft="40dp"

            android:layout_marginTop="-5dp"

            android:hint="Enter yoy age"/>

    </LinearLayout>

    <LinearLayout

        android:layout_width="match_parent"

        android:layout_height="wrap_content"

        android:orientation="horizontal"

        android:layout_marginTop="10dp">

        <TextView

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:text="Gender"

            android:textSize="20dp"

            android:textColor="#058D7F"

            android:textStyle="bold"

            android:layout_marginLeft="30dp"

            />

        <EditText

            android:layout_width="250dp"

            android:layout_height="wrap_content"

            android:layout_marginLeft="10dp"

            android:layout_marginTop="-5dp"

            android:hint="Enter your gender"/>

    </LinearLayout>

    <LinearLayout

        android:layout_width="match_parent"

        android:layout_height="wrap_content"

        android:orientation="horizontal"

        android:layout_marginTop="10dp">

        <TextView

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:text="Mob.No"

            android:textSize="20dp"

            android:textColor="#058D7F"

            android:textStyle="bold"

            android:layout_marginLeft="30dp"

            />

        <EditText

            android:layout_width="250dp"

            android:layout_height="wrap_content"

            android:layout_marginLeft="5dp"

            android:layout_marginTop="-5dp"

            android:hint="Enter your contact no"/>

    </LinearLayout>

<Button

    android:layout_width="100dp"

    android:layout_height="wrap_content"

    android:text="Submit"

    android:textColor="@color/colorwhite"

    android:textStyle="bold"

    android:background="#058D7F"

    android:layout_gravity="center_horizontal"

    android:layout_marginTop="40dp"

    />

</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