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

Mad 25 26

The document describes two XML layout files for Android applications. The first layout contains buttons to perform animations on an image like fading, zooming, and rotating. The second layout contains widgets to accept and view student details.

Uploaded by

bot army
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)
12 views4 pages

Mad 25 26

The document describes two XML layout files for Android applications. The first layout contains buttons to perform animations on an image like fading, zooming, and rotating. The second layout contains widgets to accept and view student details.

Uploaded by

bot army
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 25 :

1)
<?xml version="1.0" encoding="utf-8" ?>
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk
/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">

<ImageView
android:id="@+id/imageView"
android:layout_width="275dp"
android:layout_height="225dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:layout_x="28dp"
android:layout_y="18dp"
android:src="@drawable/android" />

<Button
android:id="@+id/fadeOutButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_x="149dp"
android:layout_y="458dp"
android:text="Fade Out" />

<Button
android:id="@+id/fadeInButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_x="47dp"
android:layout_y="455dp"
android:text="Fade In" />

<Button
android:id="@+id/zoomOutButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_x="42dp"
android:layout_y="393dp"
android:text="Zoom Out" />

<Button
android:id="@+id/zoomInButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_x="157dp"
android:layout_y="391dp"
android:text="Zoom In" />

<Button
android:id="@+id/rotateCounterClockwiseButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_x="43dp"
android:layout_y="326dp"
android:text="Rotate Counterclockwise" />

<Button
android:id="@+id/rotateClockwiseButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_x="75dp"
android:layout_y="259dp"
android:text="Rotate Clockwise" />
</AbsoluteLayout>
PRACTICAL 26 :
<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_x="50dp"
android:layout_y="20dp"
android:text="Student Details"
android:textSize="30sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_x="20dp"
android:layout_y="110dp"
android:text="Enter Rollno:"
android:textSize="20sp" />
<EditText
android:id="@+id/Rollno"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_x="175dp"
android:layout_y="100dp"
android:inputType="number"
android:textSize="20sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_x="20dp"
android:layout_y="160dp"
android:text="Enter Name:"
android:textSize="20sp" />
<EditText
android:id="@+id/Name"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_x="175dp"
android:layout_y="150dp"
android:inputType="text"
android:textSize="20sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_x="20dp"
android:layout_y="210dp"
android:text="Enter Marks:"
android:textSize="20sp" />
<EditText
android:id="@+id/Marks"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_x="175dp"
android:layout_y="200dp"
android:inputType="number"
android:textSize="20sp" />

<Button
android:id="@+id/Insert"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_x="48dp"
android:layout_y="296dp"
android:text="Insert"
android:textSize="30dp" />

<Button
android:id="@+id/ViewAll"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_x="42dp"
android:layout_y="389dp"
android:text="View All"
android:textSize="30dp" />
</AbsoluteLayout>

You might also like