Advertisement
kitlolz012

activity_bookform(XML)

Oct 4th, 2023
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.68 KB | Source Code | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ScrollView
  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:background="@drawable/background"
  9.    android:fillViewport="true">
  10.  
  11.     <LinearLayout
  12.        android:layout_width="match_parent"
  13.        android:layout_height="wrap_content"
  14.        android:orientation="vertical"
  15.        android:padding="16dp">
  16.  
  17.         <EditText
  18.            android:id="@+id/fullNameET"
  19.            android:layout_width="match_parent"
  20.            android:layout_height="wrap_content"
  21.            android:padding="15dp"
  22.            android:hint="Full Name"/>
  23.  
  24.         <LinearLayout
  25.            android:layout_width="match_parent"
  26.            android:layout_height="wrap_content"
  27.            android:orientation="horizontal">
  28.  
  29.             <EditText
  30.                android:id="@+id/checkInDateET"
  31.                android:layout_width="0dp"
  32.                android:layout_height="wrap_content"
  33.                android:layout_weight="1"
  34.                android:hint="Check-In Date"
  35.                android:padding="15dp"
  36.                android:focusable="false"
  37.                android:clickable="true"
  38.                android:focusableInTouchMode="false"/>
  39.  
  40.             <EditText
  41.                android:id="@+id/checkOutDateET"
  42.                android:layout_width="0dp"
  43.                android:layout_height="wrap_content"
  44.                android:layout_weight="1"
  45.                android:padding="15dp"
  46.                android:hint="Check-Out Date"
  47.                android:focusable="false"
  48.                android:clickable="true"
  49.                android:focusableInTouchMode="false"/>
  50.         </LinearLayout>
  51.  
  52.         <LinearLayout
  53.            android:layout_width="match_parent"
  54.            android:layout_height="wrap_content"
  55.            android:orientation="horizontal">
  56.  
  57.             <TextView
  58.                android:layout_width="0dp"
  59.                android:layout_height="wrap_content"
  60.                android:layout_weight="1"
  61.                android:text="Adults"
  62.                android:gravity="center"
  63.                android:layout_gravity="center"
  64.                android:textSize="16sp"/>
  65.  
  66.             <NumberPicker
  67.                android:id="@+id/adultsNumberPicker"
  68.                android:layout_width="0dp"
  69.                android:layout_height="wrap_content"
  70.                android:layout_weight="1"
  71.                android:layout_marginTop="10dp"
  72.                android:layout_marginBottom="10dp"
  73.                android:layout_gravity="center"
  74.                android:descendantFocusability="blocksDescendants"
  75.                android:gravity="center"
  76.                android:layout_centerHorizontal="true"
  77.                android:layout_centerVertical="true"/>
  78.  
  79.             <TextView
  80.                android:layout_width="0dp"
  81.                android:layout_height="wrap_content"
  82.                android:layout_weight="1"
  83.                android:text="Children"
  84.                android:gravity="center"
  85.                android:layout_gravity="center"
  86.                android:textSize="16sp"/>
  87.  
  88.             <NumberPicker
  89.                android:id="@+id/childrenNumberPicker"
  90.                android:layout_width="0dp"
  91.                android:layout_height="wrap_content"
  92.                android:layout_weight="1"
  93.                android:layout_marginTop="10dp"
  94.                android:layout_marginBottom="10dp"
  95.                android:layout_gravity="center"
  96.                android:descendantFocusability="blocksDescendants"
  97.                android:gravity="center"
  98.                android:layout_centerHorizontal="true"
  99.                android:layout_centerVertical="true"/>
  100.         </LinearLayout>
  101.  
  102.         <EditText
  103.            android:id="@+id/contactNumberET"
  104.            android:layout_width="match_parent"
  105.            android:layout_height="wrap_content"
  106.            android:padding="15dp"
  107.            android:hint="Contact Number"/>
  108.  
  109.         <EditText
  110.            android:id="@+id/emailET"
  111.            android:layout_width="match_parent"
  112.            android:layout_height="wrap_content"
  113.            android:padding="15dp"
  114.            android:hint="Email"/>
  115.  
  116.         <Spinner
  117.            android:id="@+id/roomPreferenceSpinner"
  118.            android:layout_width="match_parent"
  119.            android:layout_height="wrap_content"
  120.            android:padding="30dp"
  121.            android:hint="Room Preference"
  122.            android:contentDescription="Select your room preference">
  123.         </Spinner>
  124.         <TextView
  125.            android:layout_width="wrap_content"
  126.            android:layout_height="wrap_content"
  127.            android:text="Deposit on this Account"
  128.            android:textSize="20sp"
  129.            android:layout_gravity="center_horizontal" />
  130.  
  131.         <TextView
  132.            android:id="@+id/gcashDepositNumberET"
  133.            android:layout_width="match_parent"
  134.            android:layout_height="wrap_content"
  135.            android:padding="15dp"
  136.            android:hint="Hotel Gcash Number"
  137.            android:inputType="text"/>
  138.  
  139.         <TextView
  140.            android:id="@+id/gcashDepositNameET"
  141.            android:layout_width="match_parent"
  142.            android:layout_height="wrap_content"
  143.            android:padding="15dp"
  144.            android:hint="Hotel Gcash Name"
  145.            android:inputType="text"/>
  146.  
  147.         <TextView
  148.            android:layout_width="wrap_content"
  149.            android:layout_height="wrap_content"
  150.            android:text="Deposit Form"
  151.            android:textSize="20sp"
  152.            android:layout_gravity="center_horizontal" />
  153.  
  154.         <EditText
  155.            android:id="@+id/yourGcashNameET"
  156.            android:layout_width="match_parent"
  157.            android:layout_height="wrap_content"
  158.            android:padding="15dp"
  159.            android:hint="Your Gcash Name"
  160.            android:inputType="text"/>
  161.  
  162.         <EditText
  163.            android:id="@+id/yourGcashNumberET"
  164.            android:layout_width="match_parent"
  165.            android:layout_height="wrap_content"
  166.            android:padding="15dp"
  167.            android:hint="Your Gcash Number"
  168.            android:inputType="text"/>
  169.  
  170.         <EditText
  171.            android:id="@+id/referenceNumberET"
  172.            android:layout_width="match_parent"
  173.            android:layout_height="wrap_content"
  174.            android:padding="15dp"
  175.            android:hint="Reference Number"
  176.            android:inputType="text"/>
  177.  
  178.         <!-- Screenshot of the Gcash Receipt -->
  179.         <TextView
  180.            android:layout_width="wrap_content"
  181.            android:layout_height="wrap_content"
  182.            android:text="Screenshot of Gcash Receipt"
  183.            android:textSize="16sp" />
  184.  
  185.         <ImageView
  186.            android:id="@+id/attachedImageView"
  187.            android:layout_width="match_parent"
  188.            android:layout_height="wrap_content"
  189.            android:layout_gravity="center"
  190.            android:layout_marginTop="20dp"
  191.            android:layout_marginBottom="20dp"
  192.            android:scaleType="fitCenter"
  193.            android:visibility="gone" />
  194.  
  195.         <Button
  196.            android:id="@+id/attachPhotoButton"
  197.            android:layout_width="wrap_content"
  198.            android:layout_height="wrap_content"
  199.            android:text="Attach Photo"/>
  200.  
  201.         <Button
  202.            android:layout_width="wrap_content"
  203.            android:layout_height="wrap_content"
  204.            android:text="Submit"
  205.            android:id="@+id/submitButton"/>
  206.  
  207.     </LinearLayout>
  208. </ScrollView>
Tags: Android
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement