Anda di halaman 1dari 3

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

>
<RelativeLayout 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"
tools:context=".ActivityA">

<TextView
android:id="@+id/tv_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:textAppearance="@style/TextAppearance.AppCompat.Large"
android:text="Name: " />

<EditText
android:id="@+id/etName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_toRightOf="@+id/tv_name"
android:layout_alignBottom="@+id/tv_name"
android:ems="10"
android:textAlignment="center"
android:hint="Enter Name "
android:inputType="textPersonName"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />

<TextView
android:id="@+id/tvFname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="10dp"
android:layout_marginTop="20dp"
android:layout_below="@+id/tv_name"
android:text="F.Name :"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.AppCompat.Large"
/>

<EditText
android:id="@+id/etFname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_name"
android:layout_toRightOf="@+id/tvFname"
android:layout_alignBottom="@+id/tvFname"
android:layout_centerHorizontal="true"
android:ems="10"
android:textAlignment="center"
android:inputType="textPersonName"
android:hint="Enter Father Name"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"/>
<TextView
android:id="@+id/tvAddress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:layout_alignLeft="@+id/tvFname"
android:textAppearance="@style/TextAppearance.AppCompat.Large"
android:layout_below="@+id/etFname"
android:text="Address :" />

<EditText
android:id="@+id/etAddress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/tvAddress"
android:layout_toRightOf="@+id/tvAddress"
android:layout_centerHorizontal="true"
android:ems="10"
android:textAlignment="center"
android:inputType="textPersonName"
android:hint=" Enter Address"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"/>

<TextView
android:id="@+id/tvMobile"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/tvAddress"
android:layout_marginTop="20dp"
android:layout_below="@+id/etAddress"
android:textAppearance="@style/TextAppearance.AppCompat.Large"
android:text="Mobile:" />

<EditText
android:id="@+id/etMobile"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/tvMobile"
android:layout_alignBottom="@+id/tvMobile"
android:ems="10"
android:layout_centerHorizontal="true"
android:inputType="number"
android:textAlignment="center"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
android:hint="Enter Mobile"
/>
<TextView
android:id="@+id/tvEmail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/tvMobile"
android:layout_marginTop="20dp"
android:text="Email:"
android:layout_below="@+id/etMobile"
android:textAppearance="@style/TextAppearance.AppCompat.Large"
/>
<EditText
android:id="@+id/etEmail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10"
android:layout_toRightOf="@+id/tvEmail"
android:layout_alignBottom="@+id/tvEmail"
android:layout_centerHorizontal="true"
android:hint="Enter Email"
android:inputType="textWebEmailAddress"
android:textAlignment="center"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"/>
<Button
android:id="@+id/buttonDisplay"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="25dp"
android:layout_below="@id/etEmail"
android:textAppearance="@style/TextAppearance.AppCompat.Large"
android:text="Show Data"
android:layout_centerHorizontal="true"
android:textColor="@color/colorAccent"
/>

</RelativeLayout>