0% found this document useful (0 votes)
4 views1 page

XML Code

The document is an XML layout for an Android application that includes a vertical LinearLayout. It contains four EditText fields for entering item name, quantity, price, and a disabled total amount field, along with a button to generate a bill. The layout is designed with padding, margins, and gravity settings for proper alignment and spacing.

Uploaded by

vijayvaddadi071
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)
4 views1 page

XML Code

The document is an XML layout for an Android application that includes a vertical LinearLayout. It contains four EditText fields for entering item name, quantity, price, and a disabled total amount field, along with a button to generate a bill. The layout is designed with padding, margins, and gravity settings for proper alignment and spacing.

Uploaded by

vijayvaddadi071
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

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

>
<LinearLayout
xmlns:android="[Link]
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="20dp"
android:gravity="center">

<EditText
android:id="@+id/etItem"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter Item Name"
android:layout_marginBottom="10dp"
android:inputType="text" />

<EditText
android:id="@+id/etQuantity"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter Quantity"
android:inputType="number"
android:layout_marginTop="10dp"/>

<EditText
android:id="@+id/etPrice"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter Price"
android:inputType="numberDecimal"
android:layout_marginTop="10dp"/>

<EditText
android:id="@+id/etTotal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Total Amount"
android:enabled="false"
android:textSize="20dp"/>

<Button
android:id="@+id/btnGenerate"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Generate Bill"
android:layout_marginTop="16dp"/>

</LinearLayout>

You might also like