Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NOTE:
- Para makuha ung android:src="@drawable/baseline_content_copy_24" Sa Imageview Under Hotel Gcash Number Baka mag kaiba ung satin dahil sa device
- Right click sa drawable > New > Vector Asset > click Clip art > Search Copy > Content Copy name > next > Finish
- XML CODE
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.coordinatorlayout.widget.CoordinatorLayout
- 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:fillViewport="true"
- tools:context=".BookForm">
- <com.google.android.material.appbar.AppBarLayout
- android:id="@+id/appbar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:fitsSystemWindows="true"
- android:background="@color/nocolor"
- app:elevation="0dp"
- app:liftOnScroll="true">
- <com.google.android.material.appbar.CollapsingToolbarLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:fitsSystemWindows="true"
- app:contentScrim="@drawable/fragbg"
- app:title="Make your reservation"
- app:collapsedTitleTextColor="@color/white"
- app:layout_scrollFlags="scroll|exitUntilCollapsed">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="120dp"
- android:background="@drawable/fragbg"
- app:layout_collapseMode="parallax"
- app:layout_collapseParallaxMultiplier="0.7" />
- <androidx.appcompat.widget.Toolbar
- android:id="@+id/toolbar"
- android:layout_width="match_parent"
- android:layout_height="?attr/actionBarSize"
- app:layout_collapseMode="pin"
- app:layout_scrollFlags="scroll|enterAlways" />
- </com.google.android.material.appbar.CollapsingToolbarLayout>
- </com.google.android.material.appbar.AppBarLayout>
- <androidx.core.widget.NestedScrollView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:layout_behavior="@string/appbar_scrolling_view_behavior">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:padding="16dp">
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="5dp"
- android:hint="Full Name">
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/fullNameET"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="15dp"/>
- </com.google.android.material.textfield.TextInputLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="5dp"
- android:orientation="horizontal">
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:hint="Check-In Date">
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/checkInDateET"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="15dp"
- android:focusable="false"
- android:clickable="true"
- android:focusableInTouchMode="false"/>
- </com.google.android.material.textfield.TextInputLayout>
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:hint="Check-Out Date">
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/checkOutDateET"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="15dp"
- android:focusable="false"
- android:clickable="true"
- android:focusableInTouchMode="false"/>
- </com.google.android.material.textfield.TextInputLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="5dp"
- android:orientation="horizontal">
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:layout_weight="1"
- android:gravity="center"
- android:orientation="vertical">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Adults"
- android:textSize="16sp" />
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:gravity="center">
- <androidx.appcompat.widget.AppCompatButton
- android:id="@+id/minusButton"
- android:layout_width="35dp"
- android:layout_height="35dp"
- android:background="@drawable/box2"
- android:onClick="decrementValue"
- android:text="—"
- android:textColor="@color/textcolor"
- android:textSize="15sp"
- tools:ignore="TouchTargetSizeCheck" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/adultsNumberPicker"
- android:text="0"
- android:textSize="16sp"
- android:layout_marginHorizontal="10dp"/>
- <androidx.appcompat.widget.AppCompatButton
- android:id="@+id/plusButton"
- android:layout_width="35dp"
- android:layout_height="35dp"
- android:background="@drawable/box2"
- android:onClick="incrementValue"
- android:text="+"
- android:textColor="@color/textcolor"
- android:textSize="15sp"
- tools:ignore="TouchTargetSizeCheck" />
- </LinearLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:layout_weight="1"
- android:gravity="center"
- android:orientation="vertical">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Children"
- android:textSize="16sp" />
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:gravity="center">
- <androidx.appcompat.widget.AppCompatButton
- android:id="@+id/minusButton2"
- android:layout_width="35dp"
- android:layout_height="35dp"
- android:background="@drawable/box2"
- android:onClick="decrementValue2"
- android:text="—"
- android:textColor="@color/textcolor"
- android:textSize="15sp"
- tools:ignore="TouchTargetSizeCheck" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/childrenNumberPicker"
- android:text="0"
- android:textSize="16sp"
- android:layout_marginHorizontal="10dp"/>
- <androidx.appcompat.widget.AppCompatButton
- android:id="@+id/plusButton2"
- android:layout_width="35dp"
- android:layout_height="35dp"
- android:background="@drawable/box2"
- android:onClick="incrementValue2"
- android:text="+"
- android:textColor="@color/textcolor"
- android:textSize="15sp"
- tools:ignore="TouchTargetSizeCheck" />
- </LinearLayout>
- </LinearLayout>
- </LinearLayout>
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="5dp"
- android:hint="Contact Number">
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/contactNumberET"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="15dp"/>
- </com.google.android.material.textfield.TextInputLayout>
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="5dp"
- android:hint="Email">
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/emailET"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="15dp"/>
- </com.google.android.material.textfield.TextInputLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="5dp"
- android:orientation="horizontal">
- <TextView
- android:layout_width="0dp"
- android:layout_weight="1"
- android:layout_marginTop="10dp"
- android:layout_height="wrap_content"
- android:text="Select room type"
- android:textColor="@color/white"
- android:fontFamily="@font/roboto_bold"
- android:layout_marginVertical="10dp"
- android:textSize="16sp"/>
- <Spinner
- android:id="@+id/roomPreferenceSpinner"
- android:layout_width="0dp"
- android:layout_weight="1"
- android:layout_height="wrap_content"
- android:layout_marginTop="10dp"
- android:layout_marginBottom="10dp"
- android:hint="Room Preference"
- style="@android:style/Widget.Spinner"
- android:padding="8dp"
- android:dropDownWidth="match_parent"
- android:contentDescription="Select your room preference"
- android:popupBackground="#FFF"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:padding="16dp"
- android:layout_marginBottom="10dp"
- android:layout_marginTop="10dp"
- android:background="@drawable/box2">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Deposit on this Account"
- android:textSize="20sp"
- android:layout_gravity="center_horizontal" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Hotel Gcash Number : "
- android:textColor="@color/black"
- android:textSize="13sp"
- android:gravity="end"
- android:paddingEnd="1dp"/>
- <TextView
- android:id="@+id/gcashDepositNumberET"
- android:layout_width="0dp"
- android:layout_weight="0.1"
- android:layout_height="wrap_content"
- android:padding="10dp"
- android:hint="Hotel Gcash Number"
- android:inputType="text"/>
- <ImageView
- android:id="@+id/copyImageView"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:contentDescription="Copy"
- android:paddingStart="1dp"
- android:src="@drawable/baseline_content_copy_24" />
- </LinearLayout>
- <!-- Hotel Gcash Name -->
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Hotel Gcash Name : "
- android:textColor="@color/black"
- android:textSize="13sp"
- android:gravity="end"
- android:paddingEnd="5dp"/>
- <TextView
- android:id="@+id/gcashDepositNameET"
- android:layout_width="0dp"
- android:layout_weight="0.1"
- android:layout_height="wrap_content"
- android:padding="10dp"
- android:hint="Hotel Gcash Name"
- android:inputType="text"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Reserve Fee : "
- android:textColor="@color/black"
- android:textSize="16sp"
- android:gravity="end"
- android:paddingEnd="8dp"/>
- <TextView
- android:id="@+id/reservefeeET"
- android:layout_width="0dp"
- android:layout_weight="1"
- android:layout_height="wrap_content"
- android:padding="15dp"
- android:hint="Reserve Fee"
- android:inputType="text"/>
- </LinearLayout>
- </LinearLayout>
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Deposit Form"
- android:textColor="@color/white"
- android:fontFamily="@font/roboto_bold"
- android:layout_marginVertical="10dp"
- android:textSize="20sp"
- android:layout_gravity="center_horizontal" />
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:cardElevation="6dp"
- android:layout_margin="5dp"
- app:cardCornerRadius="20dp">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:padding="16dp">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Enter your Gcash number"
- android:layout_marginBottom="15dp"
- android:fontFamily="@font/roboto_bold"
- android:textSize="16sp"/>
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="Gcash Number">
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/yourGcashNumberET"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="15dp"/>
- </com.google.android.material.textfield.TextInputLayout>
- </LinearLayout>
- </androidx.cardview.widget.CardView>
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:cardElevation="6dp"
- android:layout_margin="5dp"
- app:cardCornerRadius="20dp">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:padding="16dp">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Enter your Gcash name"
- android:layout_marginBottom="15dp"
- android:fontFamily="@font/roboto_bold"
- android:textSize="16sp"/>
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="Gcash Name">
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/yourGcashNameET"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="15dp"/>
- </com.google.android.material.textfield.TextInputLayout>
- </LinearLayout>
- </androidx.cardview.widget.CardView>
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:cardElevation="6dp"
- android:layout_margin="5dp"
- app:cardCornerRadius="20dp">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:padding="16dp">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Enter your reference number"
- android:layout_marginBottom="15dp"
- android:fontFamily="@font/roboto_bold"
- android:textSize="16sp"/>
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="Reference Number">
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/referenceNumberET"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="15dp"/>
- </com.google.android.material.textfield.TextInputLayout>
- </LinearLayout>
- </androidx.cardview.widget.CardView>
- <!-- Screenshot of the Gcash Receipt -->
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Screenshot of your Gcash receipt"
- android:textSize="16sp" />
- <ImageView
- android:id="@+id/attachedImageView"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:layout_marginTop="5dp"
- android:layout_marginBottom="5dp"
- android:scaleType="fitCenter"
- android:visibility="gone" />
- <androidx.appcompat.widget.AppCompatButton
- android:id="@+id/attachPhotoButton"
- android:layout_width="140dp"
- android:layout_height="48dp"
- android:layout_gravity="start"
- android:layout_marginTop="8dp"
- android:background="@drawable/gradient2"
- android:text="Attach Photo"
- android:textColor="@color/textcolor"
- android:textSize="14sp" />
- <ProgressBar
- android:id="@+id/loadingProgressBar"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:visibility="gone" />
- <androidx.appcompat.widget.AppCompatButton
- android:id="@+id/submitButton"
- android:layout_width="190dp"
- android:layout_height="50dp"
- android:layout_gravity="center"
- android:layout_marginTop="8dp"
- android:background="@drawable/gradient2"
- android:text="Submit"
- android:textColor="@color/textcolor"
- android:textSize="18sp" />
- </LinearLayout>
- </androidx.core.widget.NestedScrollView>
- </androidx.coordinatorlayout.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement