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

MAD Andriod Code

The document describes a login form layout with a text view for the title, edit texts for name, date and time, and a button below the time edit text.

Uploaded by

Muqadas Hassan
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)
28 views2 pages

MAD Andriod Code

The document describes a login form layout with a text view for the title, edit texts for name, date and time, and a button below the time edit text.

Uploaded by

Muqadas Hassan
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

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

>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="visible"
tools:context=".MainActivity">

<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
tools:ignore="HardcodedText"
android:paddingLeft="16dp"
android:paddingRight="16dp" >
<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="62dp"
android:layout_gravity="center"
android:accessibilityHeading="false"
android:background="#2196F3"
android:text="Login Form"
android:textAlignment="center"
android:textSize="15pt"
android:textStyle="bold" />
<EditText
android:id="@+id/name"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/textView"
android:hint="Write your name " />

<EditText
android:id="@+id/dates"
android:layout_width="107dp"
android:layout_height="wrap_content"
android:layout_below="@id/name"
android:layout_alignParentLeft="true" />

<EditText
android:id="@+id/time"
android:layout_width="107dp"
android:layout_height="wrap_content"
android:layout_below="@id/name"
android:layout_alignParentRight="true" />

<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/time"
android:layout_alignParentRight="true"
android:text="done" />

</RelativeLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

You might also like