Advertisement
kitlolz012

EdithotelActivity xml

Nov 21st, 2023
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 16.16 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:layout_width="match_parent"
  4.    android:layout_height="match_parent"
  5.    xmlns:app="http://schemas.android.com/apk/res-auto"
  6.    xmlns:app1="http://schemas.android.com/tools"
  7.    android:orientation="vertical"
  8.    android:fillViewport="true">
  9.  
  10.     <androidx.appcompat.widget.Toolbar
  11.        android:layout_width="match_parent"
  12.        android:layout_height="wrap_content"
  13.        android:elevation="5dp"
  14.        android:background="@color/basecolor">
  15.  
  16.         <LinearLayout
  17.            android:layout_width="match_parent"
  18.            android:layout_height="wrap_content"
  19.            android:orientation="horizontal"
  20.            android:padding="16dp">
  21.  
  22.             <ImageView
  23.                android:layout_width="wrap_content"
  24.                android:layout_height="wrap_content"
  25.                android:src="@drawable/back"
  26.                android:contentDescription="Back"
  27.                android:onClick="goBack"
  28.                android:clickable="true"
  29.                android:focusable="true"
  30.                android:id="@+id/backButton" />
  31.  
  32.             <TextView
  33.                android:layout_width="0dp"
  34.                android:layout_height="wrap_content"
  35.                android:id="@+id/recipientNameTextView"
  36.                android:layout_weight="1"
  37.                android:text="Edit Your Details"
  38.                android:textSize="22sp"
  39.                android:layout_marginStart="8dp"
  40.                android:textStyle="bold"
  41.                android:gravity="start"
  42.                android:textColor="@color/white" />
  43.         </LinearLayout>
  44.  
  45.     </androidx.appcompat.widget.Toolbar>
  46.  
  47.  
  48.     <ScrollView
  49.        android:layout_width="match_parent"
  50.        android:layout_height="wrap_content">
  51.  
  52.     <LinearLayout
  53.        android:layout_width="match_parent"
  54.        android:layout_height="wrap_content"
  55.        android:orientation="vertical"
  56.        android:padding="16dp">
  57.  
  58.         <RelativeLayout
  59.            android:layout_width="wrap_content"
  60.            android:layout_gravity="center"
  61.            android:layout_height="wrap_content">
  62.  
  63.             <androidx.viewpager2.widget.ViewPager2
  64.                android:id="@+id/viewPager"
  65.                android:layout_width="match_parent"
  66.                android:layout_height="300dp"
  67.                android:background="@drawable/image_placeholder">
  68.             </androidx.viewpager2.widget.ViewPager2>
  69.  
  70.             <LinearLayout
  71.                android:id="@+id/dotsLayout"
  72.                android:layout_width="match_parent"
  73.                android:layout_height="wrap_content"
  74.                android:gravity="center"
  75.                android:orientation="horizontal"/>
  76.  
  77.             <com.google.android.material.floatingactionbutton.FloatingActionButton
  78.                android:layout_width="wrap_content"
  79.                android:layout_height="wrap_content"
  80.                android:baselineAlignBottom="false"
  81.                android:clickable="true"
  82.                app:fabSize="normal"
  83.                android:src="@drawable/add_photo"
  84.                android:id="@+id/uploadButton"
  85.                android:layout_gravity="end"
  86.                android:layout_marginTop="255dp"
  87.                android:layout_marginStart="275dp"
  88.                android:backgroundTint="@color/contrastcolor2"/>
  89.  
  90.         </RelativeLayout>
  91.         <com.google.android.material.textfield.TextInputLayout
  92.            android:layout_width="match_parent"
  93.            android:layout_height="wrap_content"
  94.            android:layout_marginVertical="5dp"
  95.            android:hint="Hotel's Name">
  96.  
  97.             <com.google.android.material.textfield.TextInputEditText
  98.                android:id="@+id/hotelNameET"
  99.                android:layout_width="match_parent"
  100.                android:layout_height="wrap_content"
  101.                android:padding="22dp"
  102.                android:textSize="18sp"
  103.                android:inputType="text" />
  104.  
  105.         </com.google.android.material.textfield.TextInputLayout>
  106.  
  107.         <com.google.android.material.textfield.TextInputLayout
  108.            android:layout_width="match_parent"
  109.            android:layout_height="wrap_content"
  110.            android:layout_marginVertical="5dp"
  111.            android:hint="Location">
  112.  
  113.             <com.google.android.material.textfield.TextInputEditText
  114.                android:id="@+id/hotelAddET"
  115.                android:layout_width="match_parent"
  116.                android:layout_height="wrap_content"
  117.                android:padding="22dp"
  118.                android:textSize="18sp"
  119.                android:inputType="text" />
  120.  
  121.         </com.google.android.material.textfield.TextInputLayout>
  122.  
  123.         <TextView
  124.            android:id="@+id/tvClickableLink"
  125.            android:layout_width="match_parent"
  126.            android:layout_height="match_parent"
  127.            android:text="@string/how_to_get_latitude_and_longitude_click_here"
  128.  
  129.            />
  130.  
  131.         <LinearLayout
  132.            android:layout_width="match_parent"
  133.            android:layout_height="wrap_content"
  134.            android:orientation="horizontal">
  135.  
  136.             <com.google.android.material.textfield.TextInputLayout
  137.                android:layout_width="0dp"
  138.                android:layout_weight="1"
  139.                android:layout_gravity="end"
  140.                android:layout_height="wrap_content"
  141.                android:layout_marginVertical="5dp"
  142.                android:hint="Latitude">
  143.  
  144.                 <com.google.android.material.textfield.TextInputEditText
  145.                    android:id="@+id/latitudeET"
  146.                    android:layout_width="match_parent"
  147.                    android:layout_height="wrap_content"
  148.                    android:layout_marginRight="3dp"
  149.                    android:padding="22dp"
  150.                    android:textSize="18sp"
  151.                    android:inputType="numberDecimal" />
  152.             </com.google.android.material.textfield.TextInputLayout>
  153.  
  154.             <com.google.android.material.textfield.TextInputLayout
  155.                android:layout_width="0dp"
  156.                android:layout_weight="1"
  157.                android:layout_gravity="end"
  158.                android:layout_height="wrap_content"
  159.                android:layout_marginLeft="3dp"
  160.                android:layout_marginVertical="5dp"
  161.                android:hint="Longitude">
  162.  
  163.                 <com.google.android.material.textfield.TextInputEditText
  164.                    android:id="@+id/longitudeET"
  165.                    android:layout_width="match_parent"
  166.                    android:layout_height="wrap_content"
  167.                    android:padding="22dp"
  168.                    android:textSize="18sp"
  169.                    android:inputType="numberDecimal" />
  170.             </com.google.android.material.textfield.TextInputLayout>
  171.         </LinearLayout>
  172.  
  173.         <com.google.android.material.textfield.TextInputLayout
  174.            android:layout_width="match_parent"
  175.            android:layout_height="wrap_content"
  176.            android:hint="Description"
  177.            android:layout_marginVertical="5dp"
  178.            app:counterMaxLength="400">
  179.  
  180.             <com.google.android.material.textfield.TextInputEditText
  181.                android:id="@+id/hotelDescET"
  182.                android:layout_width="match_parent"
  183.                android:layout_height="wrap_content"
  184.                android:padding="22dp"
  185.                android:textSize="18sp"
  186.                android:inputType="textMultiLine" />
  187.  
  188.         </com.google.android.material.textfield.TextInputLayout>
  189.  
  190.         <com.google.android.material.textfield.TextInputLayout
  191.            android:layout_width="match_parent"
  192.            android:layout_height="wrap_content"
  193.            android:textSize="18sp"
  194.            android:layout_marginVertical="5dp"
  195.            android:hint="Contact Number">
  196.  
  197.             <com.google.android.material.textfield.TextInputEditText
  198.                android:id="@+id/hotelContactET"
  199.                android:layout_width="match_parent"
  200.                android:layout_height="wrap_content"
  201.                android:padding="22dp"
  202.                android:textSize="18sp"
  203.                android:inputType="phone" />
  204.  
  205.         </com.google.android.material.textfield.TextInputLayout>
  206.  
  207.         <com.google.android.material.textfield.TextInputLayout
  208.            android:layout_width="match_parent"
  209.            android:layout_height="wrap_content"
  210.            android:layout_marginVertical="5dp"
  211.            android:hint="Email Address">
  212.  
  213.             <com.google.android.material.textfield.TextInputEditText
  214.                android:id="@+id/hotelEmailET"
  215.                android:layout_width="match_parent"
  216.                android:layout_height="wrap_content"
  217.                android:textSize="18sp"
  218.                android:padding="22dp"
  219.                android:inputType="textEmailAddress" />
  220.  
  221.         </com.google.android.material.textfield.TextInputLayout>
  222.  
  223.         <LinearLayout
  224.            android:id="@+id/roomTypesLayout"
  225.            android:layout_width="match_parent"
  226.            android:layout_height="wrap_content"
  227.            android:orientation="vertical">
  228.  
  229.             <androidx.recyclerview.widget.RecyclerView
  230.                android:id="@+id/roomTypesRecyclerView"
  231.                android:layout_width="match_parent"
  232.                android:layout_height="wrap_content"
  233.                android:layout_marginTop="16dp" />
  234.  
  235.             <LinearLayout
  236.                android:id="@+id/roomTypeEntryLayout"
  237.                android:layout_width="match_parent"
  238.                android:layout_height="wrap_content"
  239.                android:orientation="horizontal">
  240.  
  241.                 <com.google.android.material.textfield.TextInputLayout
  242.                    android:layout_width="0dp"
  243.                    android:layout_height="wrap_content"
  244.                    android:layout_weight="1"
  245.                    android:hint="Room Type">
  246.  
  247.                     <com.google.android.material.textfield.TextInputEditText
  248.                        android:id="@+id/roomtypeET"
  249.                        android:layout_width="match_parent"
  250.                        android:layout_height="wrap_content"
  251.                        android:padding="22dp"
  252.                        android:inputType="text" />
  253.  
  254.                 </com.google.android.material.textfield.TextInputLayout>
  255.  
  256.  
  257.             </LinearLayout>
  258.             <TextView
  259.                android:layout_width="wrap_content"
  260.                android:layout_height="wrap_content"
  261.                android:text="Please provide the pricing for each room type"/>
  262.  
  263.  
  264.             <androidx.appcompat.widget.AppCompatButton
  265.                android:layout_width="wrap_content"
  266.                android:layout_height="50dp"
  267.                android:text="Add Room Type"
  268.                android:id="@+id/addRoomTypeBtn"
  269.                android:textSize="15sp"
  270.                android:padding="7dp"
  271.                android:textColor="@color/textcolor"
  272.                android:layout_marginTop="8dp"
  273.                android:layout_marginRight="10dp"
  274.                android:layout_marginLeft="10dp"
  275.                android:layout_gravity="center"
  276.                android:background="@drawable/gradient3" />
  277.  
  278.         </LinearLayout>
  279.  
  280.         <com.google.android.material.textfield.TextInputLayout
  281.            android:layout_width="match_parent"
  282.            android:layout_height="wrap_content"
  283.            android:hint="Add Amenity">
  284.  
  285.             <com.google.android.material.textfield.TextInputEditText
  286.                android:id="@+id/amenityET"
  287.                android:layout_width="match_parent"
  288.                android:layout_height="wrap_content"
  289.                android:padding="22dp"
  290.                android:inputType="text" />
  291.  
  292.         </com.google.android.material.textfield.TextInputLayout>
  293.  
  294.         <com.google.android.material.textfield.TextInputLayout
  295.            android:layout_width="match_parent"
  296.            android:layout_height="wrap_content"
  297.            android:hint="Cancellation Policy"
  298.            app:counterEnabled="true">
  299.  
  300.             <com.google.android.material.textfield.TextInputEditText
  301.                android:id="@+id/cancellationPolicyET"
  302.                android:layout_width="match_parent"
  303.                android:layout_height="wrap_content"
  304.                android:textSize="18sp"
  305.                android:padding="22dp"
  306.                android:inputType="textMultiLine" />
  307.  
  308.         </com.google.android.material.textfield.TextInputLayout>
  309.  
  310.         <com.google.android.material.textfield.TextInputLayout
  311.            android:layout_width="match_parent"
  312.            android:layout_height="wrap_content"
  313.            android:hint="Gcash Number"
  314.            app:counterEnabled="true">
  315.  
  316.             <com.google.android.material.textfield.TextInputEditText
  317.                android:id="@+id/gcashNumber"
  318.                android:layout_width="match_parent"
  319.                android:layout_height="wrap_content"
  320.                android:textSize="18sp"
  321.                android:padding="22dp"
  322.                android:inputType="textMultiLine" />
  323.  
  324.         </com.google.android.material.textfield.TextInputLayout>
  325.  
  326.         <com.google.android.material.textfield.TextInputLayout
  327.            android:layout_width="match_parent"
  328.            android:layout_height="wrap_content"
  329.            android:hint="Gcash Name"
  330.            app:counterEnabled="true">
  331.  
  332.             <com.google.android.material.textfield.TextInputEditText
  333.                android:id="@+id/gcashName"
  334.                android:layout_width="match_parent"
  335.                android:layout_height="wrap_content"
  336.                android:textSize="18sp"
  337.                android:padding="22dp"
  338.                android:inputType="textMultiLine" />
  339.  
  340.         </com.google.android.material.textfield.TextInputLayout>
  341.  
  342.         <com.google.android.material.textfield.TextInputLayout
  343.            android:layout_width="match_parent"
  344.            android:layout_height="wrap_content"
  345.            android:hint="Set reservation fee"
  346.            app:counterEnabled="true">
  347.  
  348.             <com.google.android.material.textfield.TextInputEditText
  349.                android:id="@+id/reservationFeeET"
  350.                android:layout_width="match_parent"
  351.                android:layout_height="wrap_content"
  352.                android:textSize="18sp"
  353.                android:padding="22dp"
  354.                android:inputType="textMultiLine" />
  355.  
  356.         </com.google.android.material.textfield.TextInputLayout>
  357.  
  358.         <LinearLayout
  359.            android:layout_width="match_parent"
  360.            android:layout_height="wrap_content"
  361.            android:orientation="horizontal">
  362.  
  363.             <androidx.appcompat.widget.AppCompatButton
  364.                android:layout_width="0dp"
  365.                android:layout_weight="1"
  366.                android:layout_height="50dp"
  367.                android:layout_gravity="start"
  368.                android:gravity="center"
  369.                android:text="Save Changes"
  370.                android:id="@+id/postButton"
  371.                android:textSize="15sp"
  372.                android:padding="7dp"
  373.                android:textColor="@color/white"
  374.                android:layout_marginTop="8dp"
  375.                android:layout_marginRight="10dp"
  376.                android:layout_marginLeft="10dp"
  377.                android:background="@drawable/gradient4" />
  378.  
  379.             <androidx.appcompat.widget.AppCompatButton
  380.                android:layout_width="0dp"
  381.                android:layout_weight="1"
  382.                android:layout_height="50dp"
  383.                android:layout_gravity="start"
  384.                android:gravity="center"
  385.                android:text="Cancel"
  386.                android:id="@+id/cancelButton"
  387.                android:textSize="15sp"
  388.                android:padding="7dp"
  389.                android:onClick="goBack"
  390.                android:textColor="@color/white"
  391.                android:layout_marginTop="8dp"
  392.                android:layout_marginRight="10dp"
  393.                android:layout_marginLeft="10dp"
  394.                android:background="@drawable/gradient4" />
  395.         </LinearLayout>
  396.  
  397.     </LinearLayout>
  398.     </ScrollView>
  399. </LinearLayout>
  400.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement