0% found this document useful (0 votes)
20 views3 pages

Practical No 10

The document contains XML code for developing a login window using UI controls in an Android application. It includes two separate layouts for a WordPress website and a student login interface, both featuring text views, edit texts for username and password, and a submit button. The code specifies various attributes for layout dimensions, text sizes, and colors.

Uploaded by

jvaishnavi2502
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)
20 views3 pages

Practical No 10

The document contains XML code for developing a login window using UI controls in an Android application. It includes two separate layouts for a WordPress website and a student login interface, both featuring text views, edit texts for username and password, and a submit button. The code specifies various attributes for layout dimensions, text sizes, and colors.

Uploaded by

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

Practical No 10: Develop a Program to Implement Login Window using Above UI

Controls.

Q1.Program:
<?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"
tools:context=".MainActivity">

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="WordPress Website"
android:textColor="@color/black"
android:textSize="32dp/>

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Login"
android:id="@+id/loginText"
android:textSize="36sp"
android:textColor="@color/purple"/>

<EditText
android:layout_width="match_parent"
android:layout_height="50dp"
android:id="@+id/username"
android:background="@drawable/custom_edittext"
android:drawablePadding="8dp"
android:hint="Username"
android:textSize="10sp"/>

<EditText
android:layout_width="match_parent"
android:layout_height="50dp"
android:id="@+id/password""
android:hint="Password""/>
<Button
android:layout_width="match_parent"
android:layout_height="60dp"
android:id="@+id/loginButton"
android:text="Submit"
android:textSize="18sp"/>
</LinearLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
Q2.
Program:
<?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"
tools:context=".MainActivity">

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Karmaveer Bhaurao Patil Polytechnic Satara "
android:textColor="@color/black"
android:textSize="32dp/>

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Student Login"
android:id="@+id/loginText"
android:textSize="36sp"
android:textColor="@color/purple"/>

<EditText
android:layout_width="match_parent"
android:layout_height="50dp"
android:id="@+id/username"
android:background="@drawable/custom_edittext"
android:drawablePadding="8dp"
android:hint="Username"
android:textSize="10sp"/>

<EditText
android:layout_width="match_parent"
android:layout_height="50dp"
android:id="@+id/password""
android:hint="Password""/>
<Button
android:layout_width="match_parent"
android:layout_height="60dp"
android:id="@+id/loginButton"
android:text="Submit"
android:textSize="18sp"/>
</LinearLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
Outputs:

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy