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

Practical4 Mad

The document contains XML code for two Android layouts. The first layout displays a 'Hello World' message, while the second layout presents student details including names and marks. The document is structured to showcase basic Android UI elements using LinearLayout and TextView components.

Uploaded by

Om Mohite
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)
14 views3 pages

Practical4 Mad

The document contains XML code for two Android layouts. The first layout displays a 'Hello World' message, while the second layout presents student details including names and marks. The document is structured to showcase basic Android UI elements using LinearLayout and TextView components.

Uploaded by

Om Mohite
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

Name: Mayuri Bhagvat Pawar Roll no :106

Class:TYCO-B2

Exercise:

Q1.

Program:

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

<LinearLayout

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

android:layout_width="match_parent"

android:layout_height="match_parent"

android:orientation="vertical" >

<TextView

android:layout_width="match_parent"

android:layout_height="148dp"

android:text="Hello World"

android:layout_gravity="center"

android:textAlignment="center"

android:textStyle="bold"

android:textSize="30dp"

android:padding="48dp"> </TextView></LinearLayout>

Output:
Q2.

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

<LinearLayout

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

android:layout_width="match_parent"

android:layout_height="match_parent"

android:orientation="vertical" >

<TextView

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_marginLeft="100dp"

android:layout_marginTop="30dp"

android:text="Student Details"

android:textStyle="bold"

android:textSize="30dp"> </TextView>

<TextView

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_marginLeft="30dp"

android:layout_marginTop="30dp"

android:text="Name = Mayuri Pawar"

android:textSize="30dp"></TextView>

<TextView

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_marginLeft="30dp"

android:text="Marks = 92"

android:textSize="30dp"></TextView>

<TextView

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_marginLeft="30dp"

android:layout_marginTop="30dp"

android:text="Name = Nirjala Pawar"


android:textSize="30dp"></TextView>

<TextView

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_marginLeft="30dp"

android:text="Marks = 87"

android:textSize="30dp"></TextView>

<TextView

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_marginLeft="30dp"

android:layout_marginTop="30dp"

android:text="Name = Shravani Bhujbal"

android:textSize="30dp"></TextView>

<TextView

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_marginLeft="30dp"

android:text="Marks = 86"

android:textSize="30dp"> </TextView>

<TextView

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_marginLeft="30dp"

android:layout_marginTop="30dp"

android:text="Name = Manasi Naik"

android:textSize="30dp"></TextView>

</LinearLayout>

You might also like