127 lines
No EOL
4.5 KiB
XML
127 lines
No EOL
4.5 KiB
XML
<?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:gravity="center_horizontal"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="@dimen/activity_vertical_margin"
|
|
android:paddingLeft="@dimen/activity_horizontal_margin"
|
|
android:paddingRight="@dimen/activity_horizontal_margin"
|
|
android:paddingTop="@dimen/activity_vertical_margin"
|
|
android:background="@drawable/background"
|
|
tools:context=".MakeBooking">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_marginTop="10dp">
|
|
<TextView
|
|
android:background="@color/colorWhite"
|
|
android:id="@+id/HomeOwner"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Home Owner:"
|
|
android:paddingRight="5dp"
|
|
android:paddingLeft="10dp"
|
|
android:paddingBottom="5dp"
|
|
android:paddingTop="5dp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Large"
|
|
android:textColor="@android:color/black"
|
|
android:textSize="15sp"
|
|
android:layout_gravity="start"/>
|
|
<TextView
|
|
android:background="@color/colorWhite"
|
|
android:id="@+id/ServiceProvider"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Service Provider:"
|
|
android:paddingRight="5dp"
|
|
android:paddingLeft="10dp"
|
|
android:paddingBottom="5dp"
|
|
android:paddingTop="5dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Large"
|
|
android:textColor="@android:color/black"
|
|
android:textSize="15sp"
|
|
android:layout_gravity="start"/>
|
|
<TextView
|
|
android:background="@color/colorWhite"
|
|
android:id="@+id/Service"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Service:"
|
|
android:layout_marginBottom="10dp"
|
|
android:paddingLeft="10dp"
|
|
android:paddingRight="5dp"
|
|
android:paddingTop="5dp"
|
|
android:paddingBottom="5dp"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Large"
|
|
android:textColor="@android:color/black"
|
|
android:textSize="15sp"
|
|
android:layout_gravity="start"/>
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="10dp">
|
|
<Button
|
|
android:id="@+id/Start"
|
|
android:layout_width="90dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="Start"
|
|
android:theme="@style/AppTheme.Button"
|
|
android:onClick="onClickTime"
|
|
android:layout_marginRight="5dp"/>
|
|
<Button
|
|
android:id="@+id/End"
|
|
android:layout_width="90dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="End"
|
|
android:theme="@style/AppTheme.Button"
|
|
android:onClick="onClickTime"
|
|
android:layout_marginRight="5dp"/>
|
|
<Button
|
|
android:id="@+id/Date"
|
|
android:layout_width="140dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="Date"
|
|
android:theme="@style/AppTheme.Button"
|
|
android:onClick="onClickDate"
|
|
android:layout_gravity="end"/>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="30dp">
|
|
<Button
|
|
android:id="@+id/Book"
|
|
android:layout_width="140dp"
|
|
android:layout_height="55dp"
|
|
android:text="Book"
|
|
android:theme="@style/AppTheme.Button"
|
|
android:onClick="Book"
|
|
android:layout_marginRight="20dp"
|
|
android:layout_marginLeft="20dp"/>
|
|
<Button
|
|
android:id="@+id/Cancel"
|
|
android:layout_width="140dp"
|
|
android:layout_height="55dp"
|
|
android:text="Cancel"
|
|
android:theme="@style/AppTheme.Button"
|
|
android:onClick="Cancel"/>
|
|
</LinearLayout>
|
|
|
|
|
|
</LinearLayout> |