0% found this document useful (0 votes)
22 views6 pages

Practical 6.1

The document presents an XML layout for an Android application that includes a vertical LinearLayout containing a TableLayout. The TableLayout features a header row with columns for Name, Age, and Mobile Number, followed by multiple TableRow entries with student information. Each TableRow displays the name, age, and mobile number of various individuals.
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)
22 views6 pages

Practical 6.1

The document presents an XML layout for an Android application that includes a vertical LinearLayout containing a TableLayout. The TableLayout features a header row with columns for Name, Age, and Mobile Number, followed by multiple TableRow entries with student information. Each TableRow displays the name, age, and mobile number of various individuals.
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/ 6

Practical 6.

<?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"
android:padding="16dp">

<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:stretchColumns="1"
android:shrinkColumns="1"
android:padding="8dp">

<!-- Table Header Row -->


<TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Name"
android:textStyle="bold"
android:paddingEnd="16dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Age"
android:textStyle="bold"
android:paddingEnd="16dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Mobile Number"
android:textStyle="bold"/>

Practical 6.1 1
</TableRow>

<!-- Student Information Rows -->


<TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Viraj Sawant"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="19"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="123-456-7890"/>
</TableRow>

<TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Raj Kanade"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="24"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="987-654-3210"/>
</TableRow>

<TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Eklavya Pawar"/>

Practical 6.1 2
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="18"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="555-123-4567"/>
</TableRow>

<TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Krish Salunkhe"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="18"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="111-222-3333"/>
</TableRow>

<TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Keymon Ache"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="19"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="444-555-6666"/>

Practical 6.1 3
</TableRow>

<TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Walter White"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="49"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="777-888-9999"/>
</TableRow>

<TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Jesse Pinkman"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="27"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="000-111-2222"/>
</TableRow>

<TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Alu bhujia"/>
<TextView

Practical 6.1 4
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="26"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="333-444-5555"/>
</TableRow>

<TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Peter Parker"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="27"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="666-777-8888"/>
</TableRow>

<TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Dagdu"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="28"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="999-000-1111"/>
</TableRow>

Practical 6.1 5
</TableLayout>
</LinearLayout>

Practical 6.1 6

You might also like