0% found this document useful (0 votes)
13 views2 pages

Jaydeep Pr4 Mad

The document describes an XML file with a TextView displaying text, a Button, and an ImageView. It includes the student name, class, roll number, and practical details.

Uploaded by

Sandesh FF
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)
13 views2 pages

Jaydeep Pr4 Mad

The document describes an XML file with a TextView displaying text, a Button, and an ImageView. It includes the student name, class, roll number, and practical details.

Uploaded by

Sandesh FF
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/ 2

Name: Jaydeep Naik

Class: TYCM1 Roll No: 38 Batch: B


Practical No: 04
Title: Develop a program to Display a message, to add a button and
Image

XML File
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="BGMI Spiderman Edition"
android:textAlignment="center"
android:textColor="#2C29A5"
android:textSize="20sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintHorizontal_bias="0.497"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.261" />

<Button
android:id="@+id/button"
android:layout_width="192dp"
android:layout_height="51dp"
android:text="Play"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.497"
app:layout_constraintStart_toStartOf="parent"
tools:layout_editor_absoluteY="97dp" />

<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:srcCompat="@drawable/image1"
tools:layout_editor_absoluteX="0dp"
tools:layout_editor_absoluteY="25dp" />

</androidx.constraintlayout.widget.ConstraintLayout>
Output

You might also like