Advertisement
kitlolz012

xml edit resto

Nov 21st, 2023
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 14.42 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.     <ScrollView
  48.        android:layout_width="match_parent"
  49.        android:layout_height="wrap_content">
  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.         <RelativeLayout
  58.            android:layout_width="wrap_content"
  59.            android:layout_gravity="center"
  60.            android:layout_height="wrap_content">
  61.  
  62.             <androidx.viewpager2.widget.ViewPager2
  63.                android:id="@+id/viewPager"
  64.                android:layout_width="match_parent"
  65.                android:layout_height="300dp"
  66.                android:background="@drawable/image_placeholder">
  67.             </androidx.viewpager2.widget.ViewPager2>
  68.  
  69.             <LinearLayout
  70.                android:id="@+id/dotsLayout"
  71.                android:layout_width="match_parent"
  72.                android:layout_height="wrap_content"
  73.                android:gravity="center"
  74.                android:orientation="horizontal"/>
  75.  
  76.             <com.google.android.material.floatingactionbutton.FloatingActionButton
  77.                android:layout_width="wrap_content"
  78.                android:layout_height="wrap_content"
  79.                android:baselineAlignBottom="false"
  80.                android:clickable="true"
  81.                app:fabSize="normal"
  82.                android:src="@drawable/add_photo"
  83.                android:id="@+id/uploadButton"
  84.                android:layout_gravity="end"
  85.                android:layout_marginTop="255dp"
  86.                android:layout_marginStart="275dp"
  87.                android:backgroundTint="@color/contrastcolor2"/>
  88.  
  89.         </RelativeLayout>
  90.  
  91.         <com.google.android.material.textfield.TextInputLayout
  92.            android:id="@+id/restoNameInputLayout"
  93.            android:layout_width="match_parent"
  94.            android:layout_height="wrap_content"
  95.            android:layout_marginVertical="5dp"
  96.            android:hint="Restaurant's Name">
  97.  
  98.             <com.google.android.material.textfield.TextInputEditText
  99.                android:id="@+id/restoNameEditText"
  100.                android:layout_width="match_parent"
  101.                android:layout_height="wrap_content"
  102.                android:padding="22dp"
  103.                android:textSize="18sp"
  104.                android:inputType="text" />
  105.  
  106.         </com.google.android.material.textfield.TextInputLayout>
  107.  
  108.  
  109.         <com.google.android.material.textfield.TextInputLayout
  110.            android:id="@+id/restoAddressInputLayout"
  111.            android:layout_width="match_parent"
  112.            android:layout_height="wrap_content"
  113.            android:layout_marginVertical="5dp"
  114.            android:hint="Location">
  115.  
  116.             <com.google.android.material.textfield.TextInputEditText
  117.                android:id="@+id/restoAddressEditText"
  118.                android:layout_width="match_parent"
  119.                android:layout_height="wrap_content"
  120.                android:textSize="18sp"
  121.                android:padding="22dp"
  122.                android:inputType="text" />
  123.  
  124.         </com.google.android.material.textfield.TextInputLayout>
  125.  
  126.         <TextView
  127.            android:id="@+id/tvClickableLink"
  128.            android:layout_width="match_parent"
  129.            android:layout_height="match_parent"
  130.            android:text="@string/how_to_get_latitude_and_longitude_click_here"
  131.  
  132.            />
  133.  
  134.  
  135.         <LinearLayout
  136.            android:layout_width="match_parent"
  137.            android:layout_height="wrap_content"
  138.            android:orientation="horizontal">
  139.  
  140.             <com.google.android.material.textfield.TextInputLayout
  141.                android:layout_width="0dp"
  142.                android:layout_weight="1"
  143.                android:layout_gravity="end"
  144.                android:layout_height="wrap_content"
  145.                android:layout_marginVertical="5dp"
  146.                android:hint="Latitude">
  147.  
  148.                 <com.google.android.material.textfield.TextInputEditText
  149.                    android:id="@+id/latitudeET"
  150.                    android:layout_width="match_parent"
  151.                    android:layout_height="wrap_content"
  152.                    android:layout_marginRight="3dp"
  153.                    android:padding="22dp"
  154.                    android:textSize="18sp"
  155.                    android:inputType="numberDecimal" />
  156.             </com.google.android.material.textfield.TextInputLayout>
  157.  
  158.             <com.google.android.material.textfield.TextInputLayout
  159.                android:layout_width="0dp"
  160.                android:layout_weight="1"
  161.                android:layout_gravity="end"
  162.                android:layout_height="wrap_content"
  163.                android:layout_marginLeft="3dp"
  164.                android:layout_marginVertical="5dp"
  165.                android:hint="Longitude">
  166.  
  167.                 <com.google.android.material.textfield.TextInputEditText
  168.                    android:id="@+id/longitudeET"
  169.                    android:layout_width="match_parent"
  170.                    android:layout_height="wrap_content"
  171.                    android:padding="22dp"
  172.                    android:textSize="18sp"
  173.                    android:inputType="numberDecimal" />
  174.             </com.google.android.material.textfield.TextInputLayout>
  175.         </LinearLayout>
  176.  
  177.         <com.google.android.material.textfield.TextInputLayout
  178.            android:id="@+id/restoDescriptionInputLayout"
  179.            android:layout_width="match_parent"
  180.            android:layout_height="wrap_content"
  181.            android:layout_marginVertical="5dp"
  182.            android:hint="Description">
  183.  
  184.             <com.google.android.material.textfield.TextInputEditText
  185.                android:id="@+id/restoDescriptionEditText"
  186.                android:layout_width="match_parent"
  187.                android:layout_height="wrap_content"
  188.                android:textSize="18sp"
  189.                android:padding="22dp"
  190.                android:inputType="textMultiLine" />
  191.  
  192.         </com.google.android.material.textfield.TextInputLayout>
  193.  
  194.         <com.google.android.material.textfield.TextInputLayout
  195.            android:id="@+id/restoContactInputLayout"
  196.            android:layout_width="match_parent"
  197.            android:layout_height="wrap_content"
  198.            android:layout_marginVertical="5dp"
  199.            android:hint="Contact Number">
  200.  
  201.             <com.google.android.material.textfield.TextInputEditText
  202.                android:id="@+id/restoContactEditText"
  203.                android:layout_width="match_parent"
  204.                android:textSize="18sp"
  205.                android:padding="22dp"
  206.                android:layout_height="wrap_content"
  207.                android:inputType="phone" />
  208.  
  209.         </com.google.android.material.textfield.TextInputLayout>
  210.  
  211.         <com.google.android.material.textfield.TextInputLayout
  212.            android:id="@+id/restoEmailInputLayout"
  213.            android:layout_width="match_parent"
  214.            android:layout_height="wrap_content"
  215.            android:layout_marginVertical="5dp"
  216.            android:hint="Email Address">
  217.  
  218.             <com.google.android.material.textfield.TextInputEditText
  219.                android:id="@+id/restoEmailEditText"
  220.                android:layout_width="match_parent"
  221.                android:layout_height="wrap_content"
  222.                android:textSize="18sp"
  223.                android:padding="22dp"
  224.                android:inputType="textEmailAddress" />
  225.  
  226.         </com.google.android.material.textfield.TextInputLayout>
  227.  
  228.         <com.google.android.material.textfield.TextInputLayout
  229.            android:id="@+id/amenityInputLayout"
  230.            android:layout_width="match_parent"
  231.            android:layout_height="wrap_content"
  232.            android:layout_marginVertical="5dp"
  233.            android:hint="Add Amenity">
  234.  
  235.             <com.google.android.material.textfield.TextInputEditText
  236.                android:id="@+id/amenityEditText"
  237.                android:layout_width="match_parent"
  238.                android:layout_height="wrap_content"
  239.                android:textSize="18sp"
  240.                android:padding="22dp"
  241.                android:inputType="text" />
  242.  
  243.         </com.google.android.material.textfield.TextInputLayout>
  244.  
  245.         <com.google.android.material.textfield.TextInputLayout
  246.            android:id="@+id/cancellationPolicyInputLayout"
  247.            android:layout_width="match_parent"
  248.            android:layout_height="wrap_content"
  249.            android:layout_marginVertical="5dp"
  250.            android:hint="Cancellation Policy">
  251.  
  252.             <com.google.android.material.textfield.TextInputEditText
  253.                android:id="@+id/cancellationPolicyEditText"
  254.                android:layout_width="match_parent"
  255.                android:layout_height="wrap_content"
  256.                android:textSize="18sp"
  257.                android:padding="22dp"
  258.                android:inputType="textMultiLine" />
  259.  
  260.         </com.google.android.material.textfield.TextInputLayout>
  261.  
  262.  
  263.         <com.google.android.material.textfield.TextInputLayout
  264.            android:layout_width="match_parent"
  265.            android:layout_height="wrap_content"
  266.            android:hint="Gcash Number"
  267.            android:layout_marginVertical="5dp"
  268.            app:counterEnabled="true">
  269.  
  270.             <com.google.android.material.textfield.TextInputEditText
  271.                android:id="@+id/gcashNumber"
  272.                android:layout_width="match_parent"
  273.                android:layout_height="wrap_content"
  274.                android:textSize="18sp"
  275.                android:padding="22dp"
  276.                android:inputType="textMultiLine" />
  277.  
  278.         </com.google.android.material.textfield.TextInputLayout>
  279.  
  280.  
  281.  
  282.         <com.google.android.material.textfield.TextInputLayout
  283.            android:layout_width="match_parent"
  284.            android:layout_height="wrap_content"
  285.            android:hint="Gcash Name"
  286.            android:layout_marginVertical="5dp"
  287.            app:counterEnabled="true">
  288.             <com.google.android.material.textfield.TextInputEditText
  289.                android:id="@+id/gcashName"
  290.                android:layout_width="match_parent"
  291.                android:layout_height="wrap_content"
  292.                android:inputType="textMultiLine"
  293.                android:padding="22dp"
  294.                android:textSize="18sp" />
  295.         </com.google.android.material.textfield.TextInputLayout>
  296.  
  297.         <com.google.android.material.textfield.TextInputLayout
  298.            android:layout_width="match_parent"
  299.            android:layout_height="wrap_content"
  300.            android:hint="Set reservation fee"
  301.            app:counterEnabled="true">
  302.  
  303.             <com.google.android.material.textfield.TextInputEditText
  304.                android:id="@+id/reservationFeeET"
  305.                android:layout_width="match_parent"
  306.                android:layout_height="wrap_content"
  307.                android:textSize="18sp"
  308.                android:padding="22dp"
  309.                android:inputType="textMultiLine" />
  310.  
  311.         </com.google.android.material.textfield.TextInputLayout>
  312.  
  313.  
  314.         <LinearLayout
  315.            android:layout_width="match_parent"
  316.            android:layout_height="wrap_content"
  317.            android:orientation="horizontal">
  318.  
  319.             <androidx.appcompat.widget.AppCompatButton
  320.                android:layout_width="0dp"
  321.                android:layout_weight="1"
  322.                android:layout_height="50dp"
  323.                android:layout_gravity="start"
  324.                android:gravity="center"
  325.                android:text="Save Changes"
  326.                android:id="@+id/postButton"
  327.                android:textSize="15sp"
  328.                android:padding="7dp"
  329.                android:textColor="@color/white"
  330.                android:layout_marginTop="8dp"
  331.                android:layout_marginRight="10dp"
  332.                android:layout_marginLeft="10dp"
  333.                android:background="@drawable/gradient4" />
  334.  
  335.             <androidx.appcompat.widget.AppCompatButton
  336.                android:layout_width="0dp"
  337.                android:layout_weight="1"
  338.                android:layout_height="50dp"
  339.                android:layout_gravity="start"
  340.                android:gravity="center"
  341.                android:text="Cancel"
  342.                android:id="@+id/cancelButton"
  343.                android:textSize="15sp"
  344.                android:onClick="goBack"
  345.                android:padding="7dp"
  346.                android:textColor="@color/white"
  347.                android:layout_marginTop="8dp"
  348.                android:layout_marginRight="10dp"
  349.                android:layout_marginLeft="10dp"
  350.                android:background="@drawable/gradient4" />
  351.         </LinearLayout>
  352.  
  353.     </LinearLayout>
  354. </ScrollView>
  355. </LinearLayout>
  356.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement