Advertisement
kitlolz012

activity_book_form.xml ( new)

Nov 13th, 2023
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 21.24 KB | Source Code | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.coordinatorlayout.widget.CoordinatorLayout
  3.    xmlns:android="http://schemas.android.com/apk/res/android"
  4.    xmlns:app="http://schemas.android.com/apk/res-auto"
  5.    xmlns:tools="http://schemas.android.com/tools"
  6.    android:layout_width="match_parent"
  7.    android:layout_height="match_parent"
  8.    android:fillViewport="true"
  9.    tools:context=".BookForm">
  10.  
  11.     <com.google.android.material.appbar.AppBarLayout
  12.        android:id="@+id/appbar"
  13.        android:layout_width="match_parent"
  14.        android:layout_height="wrap_content"
  15.        android:fitsSystemWindows="true"
  16.        android:background="@color/nocolor"
  17.        app:elevation="0dp"
  18.        app:liftOnScroll="true">
  19.  
  20.         <com.google.android.material.appbar.CollapsingToolbarLayout
  21.            android:layout_width="match_parent"
  22.            android:layout_height="wrap_content"
  23.            android:fitsSystemWindows="true"
  24.            app:contentScrim="@drawable/fragbg"
  25.            app:title="Fill up form"
  26.            app:collapsedTitleTextColor="@color/white"
  27.            app:layout_scrollFlags="scroll|exitUntilCollapsed">
  28.  
  29.             <ImageView
  30.                android:layout_width="match_parent"
  31.                android:layout_height="120dp"
  32.                android:background="@drawable/fragbg"
  33.                app:layout_collapseMode="parallax"
  34.                app:layout_collapseParallaxMultiplier="0.7" />
  35.  
  36.             <androidx.appcompat.widget.Toolbar
  37.                android:id="@+id/toolbar"
  38.                android:layout_width="match_parent"
  39.                android:layout_height="?attr/actionBarSize"
  40.                app:layout_collapseMode="pin"
  41.                app:layout_scrollFlags="scroll|enterAlways" />
  42.  
  43.         </com.google.android.material.appbar.CollapsingToolbarLayout>
  44.     </com.google.android.material.appbar.AppBarLayout>
  45.  
  46.     <androidx.core.widget.NestedScrollView
  47.        android:layout_width="match_parent"
  48.        android:layout_height="match_parent"
  49.        app:layout_behavior="@string/appbar_scrolling_view_behavior">
  50.  
  51.         <LinearLayout
  52.            android:layout_width="match_parent"
  53.            android:layout_height="wrap_content"
  54.            android:orientation="vertical"
  55.            android:padding="16dp">
  56.  
  57.  
  58.             <com.google.android.material.textfield.TextInputLayout
  59.                android:layout_width="match_parent"
  60.                android:layout_height="wrap_content"
  61.                android:layout_marginTop="5dp"
  62.                android:hint="Full Name">
  63.  
  64.                 <com.google.android.material.textfield.TextInputEditText
  65.                    android:id="@+id/fullNameET"
  66.                    android:layout_width="match_parent"
  67.                    android:layout_height="wrap_content"
  68.                    android:padding="15dp"/>
  69.             </com.google.android.material.textfield.TextInputLayout>
  70.  
  71.             <LinearLayout
  72.                android:layout_width="match_parent"
  73.                android:layout_height="wrap_content"
  74.                android:layout_marginTop="5dp"
  75.                android:orientation="horizontal">
  76.                 <com.google.android.material.textfield.TextInputLayout
  77.                    android:layout_width="0dp"
  78.                    android:layout_height="wrap_content"
  79.                    android:layout_weight="1"
  80.                    android:hint="Check-Out Date">
  81.  
  82.                     <com.google.android.material.textfield.TextInputEditText
  83.                        android:id="@+id/checkInDateET"
  84.                        android:layout_width="match_parent"
  85.                        android:layout_height="wrap_content"
  86.                        android:padding="15dp"
  87.                        android:focusable="false"
  88.                        android:clickable="true"
  89.                        android:focusableInTouchMode="false"/>
  90.                 </com.google.android.material.textfield.TextInputLayout>
  91.  
  92.                 <com.google.android.material.textfield.TextInputLayout
  93.                    android:layout_width="0dp"
  94.                    android:layout_height="wrap_content"
  95.                    android:layout_weight="1"
  96.                    android:hint="Check-Out Date">
  97.  
  98.                     <com.google.android.material.textfield.TextInputEditText
  99.                        android:id="@+id/checkOutDateET"
  100.                        android:layout_width="match_parent"
  101.                        android:layout_height="wrap_content"
  102.                        android:padding="15dp"
  103.                        android:focusable="false"
  104.                        android:clickable="true"
  105.                        android:focusableInTouchMode="false"/>
  106.                 </com.google.android.material.textfield.TextInputLayout>
  107.             </LinearLayout>
  108.  
  109.             <LinearLayout
  110.                android:layout_width="match_parent"
  111.                android:layout_height="wrap_content"
  112.                android:layout_marginTop="5dp"
  113.                android:orientation="horizontal">
  114.  
  115.                 <LinearLayout
  116.                    android:layout_width="0dp"
  117.                    android:layout_height="wrap_content"
  118.                    android:layout_gravity="center"
  119.                    android:layout_weight="1"
  120.                    android:gravity="center"
  121.                    android:orientation="vertical">
  122.  
  123.                     <TextView
  124.                        android:layout_width="wrap_content"
  125.                        android:layout_height="wrap_content"
  126.                        android:text="Adults"
  127.                        android:textSize="16sp" />
  128.  
  129.                     <LinearLayout
  130.                        android:layout_width="wrap_content"
  131.                        android:layout_height="wrap_content"
  132.                        android:orientation="horizontal"
  133.                        android:gravity="center">
  134.  
  135.                         <androidx.appcompat.widget.AppCompatButton
  136.                            android:id="@+id/minusButton"
  137.                            android:layout_width="35dp"
  138.                            android:layout_height="35dp"
  139.                            android:background="@drawable/box2"
  140.                            android:onClick="decrementValue"
  141.                            android:text="—"
  142.                            android:textColor="@color/textcolor"
  143.                            android:textSize="15sp"
  144.                            tools:ignore="TouchTargetSizeCheck" />
  145.  
  146.                         <TextView
  147.                            android:layout_width="wrap_content"
  148.                            android:layout_height="wrap_content"
  149.                            android:id="@+id/adultsNumberPicker"
  150.                            android:text="0"
  151.                            android:textSize="16sp"
  152.                            android:layout_marginHorizontal="10dp"/>
  153.  
  154.                         <androidx.appcompat.widget.AppCompatButton
  155.                            android:id="@+id/plusButton"
  156.                            android:layout_width="35dp"
  157.                            android:layout_height="35dp"
  158.                            android:background="@drawable/box2"
  159.                            android:onClick="incrementValue"
  160.                            android:text="+"
  161.                            android:textColor="@color/textcolor"
  162.                            android:textSize="15sp"
  163.                            tools:ignore="TouchTargetSizeCheck" />
  164.  
  165.                     </LinearLayout>
  166.                 </LinearLayout>
  167.  
  168.                 <LinearLayout
  169.                    android:layout_width="0dp"
  170.                    android:layout_height="wrap_content"
  171.                    android:layout_gravity="center"
  172.                    android:layout_weight="1"
  173.                    android:gravity="center"
  174.                    android:orientation="vertical">
  175.  
  176.                     <TextView
  177.                        android:layout_width="wrap_content"
  178.                        android:layout_height="wrap_content"
  179.                        android:text="Children"
  180.                        android:textSize="16sp" />
  181.  
  182.                     <LinearLayout
  183.                        android:layout_width="wrap_content"
  184.                        android:layout_height="wrap_content"
  185.                        android:orientation="horizontal"
  186.                        android:gravity="center">
  187.  
  188.                         <androidx.appcompat.widget.AppCompatButton
  189.                            android:id="@+id/minusButton2"
  190.                            android:layout_width="35dp"
  191.                            android:layout_height="35dp"
  192.                            android:background="@drawable/box2"
  193.                            android:onClick="decrementValue2"
  194.                            android:text="—"
  195.                            android:textColor="@color/textcolor"
  196.                            android:textSize="15sp"
  197.                            tools:ignore="TouchTargetSizeCheck" />
  198.  
  199.                         <TextView
  200.                            android:layout_width="wrap_content"
  201.                            android:layout_height="wrap_content"
  202.                            android:id="@+id/childrenNumberPicker"
  203.                            android:text="0"
  204.                            android:textSize="16sp"
  205.                            android:layout_marginHorizontal="10dp"/>
  206.  
  207.                         <androidx.appcompat.widget.AppCompatButton
  208.                            android:id="@+id/plusButton2"
  209.                            android:layout_width="35dp"
  210.                            android:layout_height="35dp"
  211.                            android:background="@drawable/box2"
  212.                            android:onClick="incrementValue2"
  213.                            android:text="+"
  214.                            android:textColor="@color/textcolor"
  215.                            android:textSize="15sp"
  216.                            tools:ignore="TouchTargetSizeCheck" />
  217.  
  218.                     </LinearLayout>
  219.                 </LinearLayout>
  220.  
  221.             </LinearLayout>
  222.  
  223.             <com.google.android.material.textfield.TextInputLayout
  224.                android:layout_width="match_parent"
  225.                android:layout_height="wrap_content"
  226.                android:layout_marginTop="5dp"
  227.                android:hint="Contact Number">
  228.  
  229.                 <com.google.android.material.textfield.TextInputEditText
  230.                    android:id="@+id/contactNumberET"
  231.                    android:layout_width="match_parent"
  232.                    android:layout_height="wrap_content"
  233.                    android:padding="15dp"/>
  234.             </com.google.android.material.textfield.TextInputLayout>
  235.  
  236.             <com.google.android.material.textfield.TextInputLayout
  237.                android:layout_width="match_parent"
  238.                android:layout_height="wrap_content"
  239.                android:layout_marginTop="5dp"
  240.                android:hint="Email">
  241.  
  242.                 <com.google.android.material.textfield.TextInputEditText
  243.                    android:id="@+id/emailET"
  244.                    android:layout_width="match_parent"
  245.                    android:layout_height="wrap_content"
  246.                    android:padding="15dp"/>
  247.             </com.google.android.material.textfield.TextInputLayout>
  248.  
  249.  
  250.         <LinearLayout
  251.            android:layout_width="match_parent"
  252.            android:layout_height="wrap_content"
  253.            android:layout_marginTop="5dp"
  254.            android:orientation="horizontal">
  255.  
  256.                     <TextView
  257.                        android:layout_width="0dp"
  258.                        android:layout_weight="1"
  259.                        android:layout_marginTop="10dp"
  260.                        android:layout_height="wrap_content"
  261.                        android:text="Select room type"
  262.                        android:textColor="@color/white"
  263.                        android:fontFamily="@font/roboto_bold"
  264.                        android:layout_marginVertical="10dp"
  265.                        android:textSize="16sp"/>
  266.  
  267.                     <Spinner
  268.                        android:id="@+id/roomPreferenceSpinner"
  269.                        android:layout_width="0dp"
  270.                        android:layout_weight="1"
  271.                        android:layout_height="wrap_content"
  272.                        android:layout_marginTop="10dp"
  273.                        android:layout_marginBottom="10dp"
  274.                        android:hint="Room Preference"
  275.                        style="@android:style/Widget.Spinner"
  276.                        android:padding="8dp"
  277.                        android:dropDownWidth="match_parent"
  278.                        android:contentDescription="Select your room preference"
  279.                        android:popupBackground="#FFF"/>
  280.         </LinearLayout>
  281.  
  282.             <LinearLayout
  283.            android:layout_width="match_parent"
  284.            android:layout_height="wrap_content"
  285.            android:orientation="vertical"
  286.            android:padding="16dp"
  287.            android:layout_marginBottom="10dp"
  288.            android:layout_marginTop="10dp"
  289.            android:background="@drawable/box2">
  290.  
  291.                     <TextView
  292.                        android:layout_width="wrap_content"
  293.                        android:layout_height="wrap_content"
  294.                        android:text="Deposit on this Account"
  295.                        android:textSize="20sp"
  296.                        android:layout_gravity="center_horizontal" />
  297.  
  298.                     <TextView
  299.                        android:id="@+id/gcashDepositNumberET"
  300.                        android:layout_width="match_parent"
  301.                        android:layout_height="wrap_content"
  302.                        android:padding="15dp"
  303.                        android:hint="Hotel Gcash Number"
  304.                        android:inputType="text"/>
  305.  
  306.                     <TextView
  307.                        android:id="@+id/gcashDepositNameET"
  308.                        android:layout_width="match_parent"
  309.                        android:layout_height="wrap_content"
  310.                        android:padding="15dp"
  311.                        android:hint="Hotel Gcash Name"
  312.                        android:inputType="text"/>
  313.  
  314.  
  315.         </LinearLayout>
  316.  
  317.  
  318.             <TextView
  319.                android:layout_width="wrap_content"
  320.                android:layout_height="wrap_content"
  321.                android:text="Deposit Form"
  322.                android:textColor="@color/white"
  323.                android:fontFamily="@font/roboto_bold"
  324.                android:layout_marginVertical="10dp"
  325.                android:textSize="20sp"
  326.                android:layout_gravity="center_horizontal" />
  327.  
  328.  
  329.         <androidx.cardview.widget.CardView
  330.            android:layout_width="match_parent"
  331.            android:layout_height="wrap_content"
  332.            app:cardElevation="6dp"
  333.            android:layout_margin="5dp"
  334.            app:cardCornerRadius="20dp">
  335.  
  336.             <LinearLayout
  337.                android:layout_width="match_parent"
  338.                android:layout_height="wrap_content"
  339.                android:orientation="vertical"
  340.                android:padding="16dp">
  341.  
  342.                 <TextView
  343.                    android:layout_width="wrap_content"
  344.                    android:layout_height="wrap_content"
  345.                    android:text="Enter your Gcash number"
  346.                    android:layout_marginBottom="15dp"
  347.                    android:fontFamily="@font/roboto_bold"
  348.                    android:textSize="16sp"/>
  349.  
  350.                 <com.google.android.material.textfield.TextInputLayout
  351.                    android:layout_width="match_parent"
  352.                    android:layout_height="wrap_content"
  353.                    android:hint="Gcash Number">
  354.  
  355.                     <com.google.android.material.textfield.TextInputEditText
  356.                        android:id="@+id/yourGcashNumberET"
  357.                        android:layout_width="match_parent"
  358.                        android:layout_height="wrap_content"
  359.                        android:padding="15dp"/>
  360.                 </com.google.android.material.textfield.TextInputLayout>
  361.  
  362.             </LinearLayout>
  363.         </androidx.cardview.widget.CardView>
  364.  
  365.         <androidx.cardview.widget.CardView
  366.            android:layout_width="match_parent"
  367.            android:layout_height="wrap_content"
  368.            app:cardElevation="6dp"
  369.            android:layout_margin="5dp"
  370.            app:cardCornerRadius="20dp">
  371.  
  372.             <LinearLayout
  373.                android:layout_width="match_parent"
  374.                android:layout_height="wrap_content"
  375.                android:orientation="vertical"
  376.                android:padding="16dp">
  377.  
  378.                 <TextView
  379.                    android:layout_width="wrap_content"
  380.                    android:layout_height="wrap_content"
  381.                    android:text="Enter your Gcash name"
  382.                    android:layout_marginBottom="15dp"
  383.                    android:fontFamily="@font/roboto_bold"
  384.                    android:textSize="16sp"/>
  385.  
  386.                     <com.google.android.material.textfield.TextInputLayout
  387.                        android:layout_width="match_parent"
  388.                        android:layout_height="wrap_content"
  389.                        android:hint="Gcash Name">
  390.  
  391.                         <com.google.android.material.textfield.TextInputEditText
  392.                            android:id="@+id/yourGcashNameET"
  393.                            android:layout_width="match_parent"
  394.                            android:layout_height="wrap_content"
  395.                            android:padding="15dp"/>
  396.                     </com.google.android.material.textfield.TextInputLayout>
  397.             </LinearLayout>
  398.         </androidx.cardview.widget.CardView>
  399.  
  400.         <androidx.cardview.widget.CardView
  401.            android:layout_width="match_parent"
  402.            android:layout_height="wrap_content"
  403.            app:cardElevation="6dp"
  404.            android:layout_margin="5dp"
  405.            app:cardCornerRadius="20dp">
  406.  
  407.             <LinearLayout
  408.                android:layout_width="match_parent"
  409.                android:layout_height="wrap_content"
  410.                android:orientation="vertical"
  411.                android:padding="16dp">
  412.  
  413.                 <TextView
  414.                    android:layout_width="wrap_content"
  415.                    android:layout_height="wrap_content"
  416.                    android:text="Enter your reference number"
  417.                    android:layout_marginBottom="15dp"
  418.                    android:fontFamily="@font/roboto_bold"
  419.                    android:textSize="16sp"/>
  420.  
  421.                     <com.google.android.material.textfield.TextInputLayout
  422.                        android:layout_width="match_parent"
  423.                        android:layout_height="wrap_content"
  424.                        android:hint="Reference Number">
  425.  
  426.                     <com.google.android.material.textfield.TextInputEditText
  427.                        android:id="@+id/referenceNumberET"
  428.                        android:layout_width="match_parent"
  429.                        android:layout_height="wrap_content"
  430.                        android:padding="15dp"/>
  431.                     </com.google.android.material.textfield.TextInputLayout>
  432.             </LinearLayout>
  433.         </androidx.cardview.widget.CardView>
  434.  
  435.         <!-- Screenshot of the Gcash Receipt -->
  436.         <TextView
  437.            android:layout_width="wrap_content"
  438.            android:layout_height="wrap_content"
  439.            android:text="Screenshot of your Gcash receipt"
  440.            android:textSize="16sp" />
  441.  
  442.         <ImageView
  443.            android:id="@+id/attachedImageView"
  444.            android:layout_width="match_parent"
  445.            android:layout_height="wrap_content"
  446.            android:layout_gravity="center"
  447.            android:layout_marginTop="5dp"
  448.            android:layout_marginBottom="5dp"
  449.            android:scaleType="fitCenter"
  450.            android:visibility="gone" />
  451.  
  452.             <androidx.appcompat.widget.AppCompatButton
  453.                android:id="@+id/attachPhotoButton"
  454.                android:layout_width="140dp"
  455.                android:layout_height="48dp"
  456.                android:layout_gravity="start"
  457.                android:layout_marginTop="8dp"
  458.                android:background="@drawable/gradient2"
  459.                android:text="Attach Photo"
  460.                android:textColor="@color/textcolor"
  461.                android:textSize="14sp" />
  462.  
  463.             <ProgressBar
  464.                android:id="@+id/loadingProgressBar"
  465.                android:layout_width="wrap_content"
  466.                android:layout_height="wrap_content"
  467.                android:layout_gravity="center"
  468.                android:visibility="gone" />
  469.  
  470.  
  471.             <androidx.appcompat.widget.AppCompatButton
  472.                android:id="@+id/submitButton"
  473.                android:layout_width="190dp"
  474.                android:layout_height="50dp"
  475.                android:layout_gravity="center"
  476.                android:layout_marginTop="8dp"
  477.                android:background="@drawable/gradient2"
  478.                android:text="Submit"
  479.                android:textColor="@color/textcolor"
  480.                android:textSize="18sp" />
  481.  
  482.         </LinearLayout>
  483.  
  484.  
  485.     </androidx.core.widget.NestedScrollView>
  486. </androidx.coordinatorlayout.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement