ASSIGNMENT 1
PAINT CALCULATOR
APP
2024
,DISCLAIMER
Please do not copy anything
from this document,It is
meant to be used as a guide
and you supposed to come up
with your own solution.
By purchasing this document
you are letting the creator of
this document NOT be held
responsible for whatever
mark the user gets for this
assignment,whether pass or
fail
Purchase at your own Risk!
,
, MAINACTIVITYLAYOUT.XML
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:padding="16dp">
<!-- Title -->
<TextView
android:id="@+id/text_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Paint Calculator App ,Made By STUDENTNUMBER"
android:textSize="24sp"
android:layout_centerHorizontal="true"
android:layout_marginBottom="16dp"/>
<!-- Image -->
<ImageView
android:id="@+id/image_paint"
android:layout_width="200dp"
android:layout_height="200dp"
android:src="@mipmap/image_paint_round"
android:layout_below="@id/text_title"
android:layout_centerHorizontal="true"
android:layout_marginTop="16dp"/>
<!-- Text field for room height -->
<EditText
android:id="@+id/edit_text_height"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter room height (in meters)"
android:inputType="numberDecimal"
android:layout_below="@id/image_paint"
android:layout_marginTop="16dp"/>
<!-- Text field for room distance -->
<EditText
android:id="@+id/edit_text_distance"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter room distance (in meters)"
android:inputType="numberDecimal"
android:layout_below="@id/edit_text_height"
android:layout_marginTop="16dp"/>
<!-- Spinner for selecting paint color -->
<Spinner
android:id="@+id/spinner_color"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/edit_text_distance"
android:layout_marginTop="16dp"/>
<!-- Button to calculate paint -->
<Button
android:id="@+id/button_calculate"