Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

<?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">

<TextView
android:id="@+id/text_full_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Full Name:"
android:textSize="35dp"
android:layout_alignParentTop="true"
android:layout_alignParentStart="true" />

<EditText
android:id="@+id/edit_full_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toEndOf="@id/text_full_name"
android:hint="Enter full name"
android:textSize="30dp"
android:layout_marginStart="5dp"
android:layout_alignBaseline="@id/text_full_name" />

<TextView
android:id="@+id/text_gender"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Gender:"
android:textSize="35dp"
android:layout_below="@id/text_full_name"
android:layout_alignParentStart="true"
android:layout_marginTop="20dp" />

<RadioGroup
android:id="@+id/radio_group_gender"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="left"
android:layout_below="@id/text_gender"
android:layout_alignParentStart="true">

<RadioButton
android:id="@+id/radio_male"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Male"
android:textSize="29dp" />

<RadioButton
android:id="@+id/radio_female"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Female"
android:textSize="29dp" />

</RadioGroup>

<TextView
android:id="@+id/text_phone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Phone:"
android:textSize="35dp"
android:layout_below="@id/radio_group_gender"
android:layout_alignParentStart="true"
android:layout_marginTop="20dp"/>

<EditText
android:id="@+id/edit_phone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toEndOf="@id/text_phone"
android:hint="Enter Phone"
android:textSize="30dp"
android:layout_marginStart="5dp"
android:layout_alignBaseline="@id/text_phone" />

<TextView
android:id="@+id/text_email"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Email:"
android:textSize="35dp"
android:layout_below="@id/text_phone"
android:layout_alignParentStart="true"
android:layout_marginTop="20dp" />

<EditText
android:id="@+id/edit_email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toEndOf="@id/text_email"
android:hint="Enter email"
android:textSize="30dp"
android:layout_marginStart="5dp"
android:layout_alignBaseline="@id/text_email" />

<TextView
android:id="@+id/text_course"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Course:"
android:textSize="35dp"
android:layout_below="@id/text_email"
android:layout_alignParentStart="true"
android:layout_marginTop="20dp" />

<EditText
android:id="@+id/edit_course"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toEndOf="@id/text_course"
android:hint="Choose course"
android:textSize="30dp"
android:layout_marginStart="5dp"
android:layout_alignBaseline="@id/text_course" />

<CheckBox
android:id="@+id/checkbox_android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Android"
android:textColor="@color/black"
android:textSize="30dp"
android:layout_below="@id/text_course"
android:layout_alignParentStart="true"
android:layout_marginTop="20dp" />

<CheckBox
android:id="@+id/checkbox_web"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Web"
android:textColor="@color/black"
android:textSize="30dp"
android:layout_toEndOf="@id/checkbox_android"
android:layout_alignBaseline="@id/checkbox_android" />

<CheckBox
android:id="@+id/checkbox_gis"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="GIS"
android:textColor="@color/black"
android:textSize="30dp"
android:layout_toEndOf="@id/checkbox_web"
android:layout_alignBaseline="@id/checkbox_web" />

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:text="Submit"
android:textSize="30dp"
android:layout_below="@id/checkbox_android"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp" />

</RelativeLayout>

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


<LinearLayout 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:layout_gravity="center"
android:orientation="vertical">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Full Name:"
android:textSize="35dp" />

<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter full name"
android:textSize="30dp"
android:layout_marginLeft="5dp" />

</LinearLayout>

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Gender:"
android:textSize="35dp" />

<RadioGroup
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="left">

<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Male"
android:textSize="29dp" />

<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Female"
android:textSize="29dp" />

</RadioGroup>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:gravity="fill"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Phone:"
android:textSize="35dp" />

<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:hint="Enter Phone"
android:textSize="30dp" />

</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:gravity="fill"
android:orientation="horizontal">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Email:"
android:textSize="35dp" />

<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:hint="Enter email"
android:textSize="30dp" />

</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="fill"
android:orientation="horizontal">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Course:"
android:textSize="35dp" />

<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:hint="Choose course"
android:textSize="30dp" />

</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="fill"
android:orientation="horizontal">

<CheckBox
android:layout_width="wrap_content"
android:layout_height="46dp"
android:text="Android"
android:textColor="@color/black"
android:textSize="30dp" />

<CheckBox
android:layout_width="wrap_content"
android:layout_height="46dp"
android:text="Web"
android:textColor="@color/black"
android:textSize="30dp" />

<CheckBox
android:layout_width="wrap_content"
android:layout_height="46dp"
android:text="GIS"
android:textColor="@color/black"
android:textSize="30dp" />

</LinearLayout>

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:text="Submit"
android:textSize="30dp" />

</LinearLayout>

You might also like