Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
- <TextView
- android:id="@+id/txtWelcome"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/txtwelcome"
- android:textSize="18sp" />
- <ScrollView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:id="@+id/scrollView"
- android:paddingTop="12dp"
- android:layout_gravity="center_horizontal" >
- <LinearLayout
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:weightSum="12"
- android:layout_height="wrap_content">
- <EditText
- android:id="@+id/txtName"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:hint="@string/txtname"
- android:inputType="textPersonName"/>
- <Button
- android:id="@+id/btnDOB"
- android:layout_width="wrap_content"
- android:layout_gravity="center"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:onClick="onClickDate"
- android:text="@string/txtDOB" />
- <TextView
- android:id="@+id/txtdisplaydate"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:textSize="15sp"/>
- <EditText
- android:id="@+id/txtAddress"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:hint="@string/txtaddress"
- android:inputType="textPostalAddress"/>
- <EditText
- android:id="@+id/txtTown"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:hint="@string/txttown"
- android:inputType="text"/>
- <EditText
- android:id="@+id/txtPostcode"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:hint="@string/txtpostcode"
- android:inputType="text"/>
- <EditText
- android:id="@+id/txtContactNumber"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:hint="@string/txtcontactnumber"
- android:inputType="phone"/>
- <EditText
- android:id="@+id/txtEmail"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:hint="@string/txtemail"
- android:inputType="textEmailAddress"/>
- <EditText
- android:id="@+id/txtJobTitle"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:hint="@string/txtjobtitle"
- android:inputType="text"/>
- <EditText
- android:id="@+id/txtSalary"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:hint="@string/txtsalary"
- android:inputType="text"/>
- </LinearLayout>
- </ScrollView>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:weightSum="2"
- android:orientation="horizontal">
- <Button
- android:id="@+id/btncancel"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="bottom"
- android:layout_weight="1"
- android:text="@string/txtcancel"
- android:onClick="onClickCancel"/>
- <Button
- android:id="@+id/btnAddEmployee"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="bottom"
- android:layout_weight="1"
- android:text="@string/txtadd" />
- </LinearLayout>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement