0% found this document useful (0 votes)
3 views

Code

The document contains XML layout code for an Android application with several EditText fields for user input, including Name, Contact, and Date of Birth. It also includes four buttons for inserting, updating, deleting, and viewing data. Each UI element is defined with specific layout parameters and hints for user guidance.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Code

The document contains XML layout code for an Android application with several EditText fields for user input, including Name, Contact, and Date of Birth. It also includes four buttons for inserting, updating, deleting, and viewing data. Each UI element is defined with specific layout parameters and hints for user guidance.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

<EditText

android:id="@+id/Name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/texttitle"
android:layout_marginTop="7dp"
android:hint="Name"
android:inputType="textPersonName"
android:textsize="24dp" />

<EditText
android:id="@+id/Contact"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/name"
android:layout_marginTop="68dp"
android:hint="Contact"
android:inputType="number"
android:textsize="24dp"/>

<EditText
android:id="@+id/DateOfBirth"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/contact"
android:layout_marginTop="157dp"
android:hint="Date of Birth"
android:inputType="number"
android:textsize="24dp"/>

<Button
android:id="@+id/btnInsert"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/dob"
android:layout_marginTop="30dp"
android:text="Insert New Data"
android:textSize="24dp" />

<Button
android:id="@+id/btnUpdate"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/btnInsert"
android:layout_marginTop="289dp"
android:text="Update New Data"
android:textSize="24dp"/>

<Button
android:id="@+id/btnDelete"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/btnUpdate"
android:layout_marginTop="182dp"
android:text="Delete Existing Data"
android:textSize="24dp"/>

<Button
android:id="@+id/btnView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/btnUpdate"
android:layout_marginTop="261dp"
android:text="View Data"
android:textSize="24dp"/>

You might also like