0% found this document useful (0 votes)
8 views4 pages

Practical 06 1

The document contains two programming tasks: the first is to create an Android application that displays basic information for 10 students in a table format, while the second task involves displaying various data types in object-oriented programming using a Frame layout. The XML code snippets provided illustrate the layout structure and components used for both tasks. Each task includes elements such as TextViews and TableLayouts to organize and present the data effectively.

Uploaded by

harshdpatil445
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)
8 views4 pages

Practical 06 1

The document contains two programming tasks: the first is to create an Android application that displays basic information for 10 students in a table format, while the second task involves displaying various data types in object-oriented programming using a Frame layout. The XML code snippets provided illustrate the layout structure and components used for both tasks. Each task includes elements such as TextViews and TableLayouts to organize and present the data effectively.

Uploaded by

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

Practical 06

1) WAP to display 10 students’ basic info in a table using table format.

<?xml version="1.0" encoding="utf-8"?> android:layout_height="wrap_content"


<androidx.constraintlayout.widget.ConstraintLayout android:text="550"
xmlns:android="http://schemas.android.com/apk/res/andro android:textAlignment="center"
id" android:textSize="24sp" />
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" <TextView
android:layout_width="match_parent" android:id="@+id/textView6"
android:layout_height="match_parent" android:layout_width="wrap_content"
tools:context=".MainActivity"> android:layout_height="wrap_content"
android:text="IF5I"
<TableLayout android:textAlignment="center"
android:layout_width="409dp" android:textSize="24sp" />
android:layout_height="729dp"
android:background="#CCCCCC" </TableRow>
tools:layout_editor_absoluteX="1dp" <TableRow
tools:layout_editor_absoluteY="1dp"> android:layout_width="match_parent"
android:layout_height="match_parent" >
<TableRow
android:layout_width="match_parent" <TextView
android:layout_height="match_parent" > android:id="@+id/textView7"
android:layout_width="wrap_content"
<TextView android:layout_height="wrap_content"
android:id="@+id/textView2" android:text="Minit"
android:layout_width="127dp" android:textAlignment="center"
android:layout_height="wrap_content" android:textSize="24sp" />
android:text="Name"
android:textAlignment="center" <TextView
android:textSize="34sp" android:id="@+id/textView8"
android:textStyle="bold" /> android:layout_width="wrap_content"
android:layout_height="wrap_content"
<TextView android:text="589"
android:id="@+id/textView" android:textAlignment="center"
android:layout_width="129dp" android:textSize="24sp" />
android:layout_height="wrap_content"
android:text="Marks" <TextView
android:textAlignment="center" android:id="@+id/textView9"
android:textSize="34sp" android:layout_width="wrap_content"
android:textStyle="bold" /> android:layout_height="wrap_content"
android:text="IF5I"
<TextView android:textAlignment="center"
android:id="@+id/textView3" android:textSize="24sp" />
android:layout_width="156dp" </TableRow>
android:layout_height="wrap_content" <TableRow
android:text="Class" android:layout_width="match_parent"
android:textAlignment="center" android:layout_height="match_parent" >
android:textSize="34sp"
android:textStyle="bold" /> <TextView
</TableRow> android:id="@+id/textView4"
android:layout_width="wrap_content"
<TableRow android:layout_height="wrap_content"
android:layout_width="match_parent" android:text="Yamin"
android:layout_height="match_parent" > android:textAlignment="center"
android:textSize="24sp" />
<TextView
android:id="@+id/textView4" <TextView
android:layout_width="wrap_content" android:id="@+id/textView5"
android:layout_height="wrap_content" android:layout_width="wrap_content"
android:text="Pranali" android:layout_height="wrap_content"
android:textAlignment="center" android:text="569"
android:textSize="24sp" /> android:textAlignment="center"
android:textSize="24sp" />
<TextView
android:id="@+id/textView5" <TextView
android:layout_width="wrap_content" android:id="@+id/textView6"
android:layout_width="wrap_content" android:textAlignment="center"
android:layout_height="wrap_content" android:textSize="24sp" />
android:text="IF5I"
android:textAlignment="center" <TextView
android:textSize="24sp" /> android:id="@+id/textView5"
android:layout_width="wrap_content"
</TableRow> android:layout_height="wrap_content"
<TableRow android:text="531"
android:layout_width="match_parent" android:textAlignment="center"
android:layout_height="match_parent" > android:textSize="24sp" />

<TextView <TextView
android:id="@+id/textView4" android:id="@+id/textView6"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="Wahab" android:text="IF3I"
android:textAlignment="center" android:textAlignment="center"
android:textSize="24sp" /> android:textSize="24sp" />

<TextView </TableRow>
android:id="@+id/textView5" <TableRow
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent" >
android:text="569"
android:textAlignment="center" <TextView
android:textSize="24sp" /> android:id="@+id/textView4"
android:layout_width="wrap_content"
<TextView android:layout_height="wrap_content"
android:id="@+id/textView6" android:text="Shlok"
android:layout_width="wrap_content" android:textAlignment="center"
android:layout_height="wrap_content" android:textSize="24sp" />
android:text="IF5I"
android:textAlignment="center" <TextView
android:textSize="24sp" /> android:id="@+id/textView5"
android:layout_width="wrap_content"
</TableRow> android:layout_height="wrap_content"
<TableRow android:text="531"
android:layout_width="match_parent" android:textAlignment="center"
android:layout_height="match_parent" > android:textSize="24sp" />

<TextView <TextView
android:id="@+id/textView4" android:id="@+id/textView6"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="Yash" android:text="IF3I"
android:textAlignment="center" android:textAlignment="center"
android:textSize="24sp" /> android:textSize="24sp" />

<TextView </TableRow>
android:id="@+id/textView5" <TableRow
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent" >
android:text="563"
android:textAlignment="center" <TextView
android:textSize="24sp" /> android:id="@+id/textView4"
android:layout_width="wrap_content"
<TextView android:layout_height="wrap_content"
android:id="@+id/textView6" android:text="Pal"
android:layout_width="wrap_content" android:textAlignment="center"
android:layout_height="wrap_content" android:textSize="24sp" />
android:text="IF5I"
android:textAlignment="center" <TextView
android:textSize="24sp" /> android:id="@+id/textView5"
android:layout_width="wrap_content"
</TableRow> android:layout_height="wrap_content"
<TableRow android:text="543"
android:layout_width="match_parent" android:textAlignment="center"
android:layout_height="match_parent" > android:textSize="24sp" />

<TextView <TextView
android:id="@+id/textView4" android:id="@+id/textView6"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="Viraj" android:text="IF5I"
android:textAlignment="center" <TableRow
android:textSize="24sp" /> android:layout_width="match_parent"
android:layout_height="match_parent" >
</TableRow>
<TableRow <TextView
android:layout_width="match_parent" android:id="@+id/textView4"
android:layout_height="match_parent" > android:layout_width="wrap_content"
android:layout_height="wrap_content"
<TextView android:text="Nisha"
android:id="@+id/textView4" android:textAlignment="center"
android:layout_width="wrap_content" android:textSize="24sp" />
android:layout_height="wrap_content"
android:text="Vedant" <TextView
android:textAlignment="center" android:id="@+id/textView5"
android:textSize="24sp" /> android:layout_width="wrap_content"
android:layout_height="wrap_content"
<TextView android:text="530"
android:id="@+id/textView5" android:textAlignment="center"
android:layout_width="wrap_content" android:textSize="24sp" />
android:layout_height="wrap_content"
android:text="549" <TextView
android:textAlignment="center" android:id="@+id/textView6"
android:textSize="24sp" /> android:layout_width="wrap_content"
android:layout_height="wrap_content"
<TextView android:text="IF5I"
android:id="@+id/textView6" android:textAlignment="center"
android:layout_width="wrap_content" android:textSize="24sp" />
android:layout_height="wrap_content"
android:text="IF5I" </TableRow>
android:textAlignment="center" </TableLayout>
android:textSize="24sp" /> </androidx.constraintlayout.widget.ConstraintLayout>
</TableRow>
2) WAP to display all data types in object-oriented programming using Frame layout.

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


<androidx.constraintlayout.widget.ConstraintLayout 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">

<FrameLayout
android:layout_width="409dp"
android:layout_height="729dp"
tools:layout_editor_absoluteX="1dp"
tools:layout_editor_absoluteY="1dp">

<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="Int"
android:textSize="24sp"
android:textStyle="bold" />
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="Float"
android:textSize="24sp"
android:textStyle="bold" />
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="Boolean"
android:textSize="24sp"
android:textStyle="bold" />

<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|center"
android:text="String"
android:textSize="24sp"
android:textStyle="bold" />

<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:text="Char"
android:textSize="24sp"
android:textStyle="bold" />
</FrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

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