Advertisement
kitlolz012

reserve form xml

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