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

Practical 10 1

The document outlines an XML layout for a student login interface in an Android application. It includes various UI components such as TextViews, EditTexts for user input (name, age, email, and branch), and a Button for login. The layout is designed with specific margins, text sizes, and styles to enhance user experience.

Uploaded by

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

Practical 10 1

The document outlines an XML layout for a student login interface in an Android application. It includes various UI components such as TextViews, EditTexts for user input (name, age, email, and branch), and a Button for login. The layout is designed with specific margins, text sizes, and styles to enhance user experience.

Uploaded by

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

Practical 10

❖ Student Login.
<?xml version="1.0" encoding="utf-8"?> android:textSize="18dp"
<RelativeLayout android:textAlignment="center”
xmlns:android="http://schemas.android.com/apk/ android:layout_marginTop="160dp"
res/android" android:layout_marginLeft="20dp"
xmlns:app="http://schemas.android.com/apk/res- android:layout_toRightOf="@id/text2"/>
auto"
xmlns:tools="http://schemas.android.com/tools" <TextView
android:id="@+id/main" android:id="@+id/text3"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="wrap_content"
tools:context=".MainActivity" android:text="Age:"
android:layout_margin="15dp"> android:textSize="20dp"
android:textStyle="bold"
<TextView android:layout_marginTop="240dp" />
android:layout_width="match_parent"
android:layout_height="wrap_content" <EditText
android:text="Student Login" android:id="@+id/edit_age"
android:textSize="30dp" android:layout_width="150dp"
android:textStyle="bold" android:layout_height="wrap_content"
android:textAlignment="center" android:hint="Enter your Age"
android:background="#9C27B0" android:textSize="18dp"
android:textColor="#ffffff" /> android:textAlignment="center"
android:layout_marginTop="230dp"
<TextView android:layout_marginLeft="20dp"
android:id="@+id/text1" android:layout_toRightOf="@id/text3"/>
android:layout_width="wrap_content"
android:layout_height="wrap_content" <TextView
android:text="Name:" android:id="@+id/text4"
android:textSize="20dp" android:layout_width="wrap_content"
android:textStyle="bold" android:layout_height="wrap_content"
android:layout_marginTop="100dp" /> android:text="E-Mail:"
android:textSize="20dp"
<EditText android:textStyle="bold"
android:id="@+id/edit_name" android:layout_marginTop="310dp" />
android:layout_width="300dp"
android:layout_height="wrap_content" <EditText
android:hint="Enter Name" android:id="@+id/edit_email"
android:textSize="18dp" android:layout_width="300dp"
android:textAlignment="center" android:layout_height="wrap_content"
android:layout_marginTop="90dp" android:hint="Enter E-Mail Address"
android:layout_marginLeft="20dp" android:textSize="18dp"
android:layout_toRightOf="@id/text1" /> android:textAlignment="center"
android:layout_marginTop="300dp"
<TextView android:layout_marginLeft="20dp"
android:id="@+id/text2" android:layout_toRightOf="@id/text4"/>
android:layout_width="wrap_content"
android:layout_height="wrap_content" <Button
android:text="Branch:" android:id="@+id/btn1"
android:textSize="20dp" android:layout_width="150dp"
android:textStyle="bold" android:layout_height="wrap_content"
android:layout_marginTop="170dp" /> android:text="Login"
android:textSize="25dp"
<EditText android:layout_centerHorizontal="true"
android:id="@+id/edit_branch" android:layout_marginTop="430dp" />
android:layout_width="300dp"
android:layout_height="wrap_content" </RelativeLayout>
android:hint="Enter Branch"
➢ Output:-

You might also like