0% found this document useful (0 votes)
10 views6 pages

Alomofu

The document contains layout specifications for an Android registration form with fields for name, gender, phone, email, course selection and a submit button arranged using relative and linear layouts.

Uploaded by

Aliy
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)
10 views6 pages

Alomofu

The document contains layout specifications for an Android registration form with fields for name, gender, phone, email, course selection and a submit button arranged using relative and linear layouts.

Uploaded by

Aliy
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
You are on page 1/ 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