Hasbi_Assidiqqi

activity_main

Mar 23rd, 2021 (edited)
881
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 10.19 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    tools:context=".MainActivity">
  8.  
  9.     <LinearLayout
  10.        android:layout_width="match_parent"
  11.        android:layout_height="wrap_content"
  12.        android:orientation="vertical">
  13.  
  14.         <com.google.android.material.appbar.AppBarLayout
  15.            android:layout_width="match_parent"
  16.            android:layout_height="wrap_content"
  17.            android:background="@color/purple_500">
  18.  
  19.             <com.google.android.material.appbar.MaterialToolbar
  20.                android:layout_width="match_parent"
  21.                android:layout_height="?attr/actionBarSize"
  22.                app:menu="@menu/menu_main"
  23.                app:navigationIcon="@drawable/ic_nav_menu" />
  24.  
  25.         </com.google.android.material.appbar.AppBarLayout>
  26.  
  27.         <LinearLayout
  28.            android:layout_width="match_parent"
  29.            android:layout_height="wrap_content"
  30.            android:layout_marginTop="24dp"
  31.            android:layout_marginStart="24dp"
  32.            android:layout_marginEnd="24dp"
  33.            android:orientation="horizontal"
  34.            android:gravity="center">
  35.  
  36.             <ImageView
  37.                android:layout_width="wrap_content"
  38.                android:layout_height="wrap_content"
  39.                android:layout_marginEnd="12dp"
  40.                android:src="@drawable/ic_name" />
  41.  
  42.             <com.google.android.material.textfield.TextInputLayout
  43.                android:layout_width="match_parent"
  44.                android:layout_height="wrap_content"
  45.                app:endIconMode="clear_text"
  46.                style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox">
  47.  
  48.                 <com.google.android.material.textfield.TextInputEditText
  49.                    android:id="@+id/edt_name"
  50.                    android:layout_width="match_parent"
  51.                    android:layout_height="wrap_content"
  52.                    android:hint="Name"
  53.                    android:inputType="text"
  54.                    android:maxLines="1"
  55.                    android:ellipsize="end"/>
  56.  
  57.             </com.google.android.material.textfield.TextInputLayout>
  58.  
  59.         </LinearLayout>
  60.  
  61.         <LinearLayout
  62.            android:layout_width="match_parent"
  63.            android:layout_height="wrap_content"
  64.            android:layout_marginTop="24dp"
  65.            android:layout_marginStart="24dp"
  66.            android:layout_marginEnd="24dp"
  67.            android:orientation="horizontal"
  68.            android:gravity="center">
  69.  
  70.             <ImageView
  71.                android:layout_width="wrap_content"
  72.                android:layout_height="wrap_content"
  73.                android:layout_marginEnd="12dp"
  74.                android:src="@drawable/ic_phone" />
  75.  
  76.             <com.google.android.material.textfield.TextInputLayout
  77.                android:layout_width="match_parent"
  78.                android:layout_height="wrap_content"
  79.                android:layout_marginEnd="6dp"
  80.                app:endIconMode="clear_text"
  81.                android:layout_weight="1"
  82.                style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox">
  83.  
  84.                 <com.google.android.material.textfield.TextInputEditText
  85.                    android:id="@+id/edt_phone"
  86.                    android:layout_width="match_parent"
  87.                    android:layout_height="wrap_content"
  88.                    android:hint="Phone"
  89.                    android:inputType="phone"
  90.                    android:maxLines="1"
  91.                    android:ellipsize="end"/>
  92.  
  93.             </com.google.android.material.textfield.TextInputLayout>
  94.  
  95.             <com.google.android.material.textfield.TextInputLayout
  96.                android:layout_width="match_parent"
  97.                android:layout_height="wrap_content"
  98.                android:layout_weight="1"
  99.                android:hint="Area"
  100.                style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox.Dense.ExposedDropdownMenu"
  101.                android:layout_marginStart="6dp">
  102.  
  103.                 <AutoCompleteTextView
  104.                    android:layout_width="match_parent"
  105.                    android:layout_height="wrap_content"
  106.                    android:inputType="none"
  107.                    tools:ignore="LabelFor" />
  108.  
  109.             </com.google.android.material.textfield.TextInputLayout>
  110.  
  111.         </LinearLayout>
  112.  
  113.         <LinearLayout
  114.            android:layout_width="match_parent"
  115.            android:layout_height="wrap_content"
  116.            android:layout_marginTop="24dp"
  117.            android:layout_marginStart="24dp"
  118.            android:layout_marginEnd="24dp"
  119.            android:orientation="horizontal"
  120.            android:gravity="center">
  121.  
  122.             <ImageView
  123.                android:layout_width="wrap_content"
  124.                android:layout_height="wrap_content"
  125.                android:layout_marginEnd="12dp"
  126.                android:src="@drawable/ic_location" />
  127.  
  128.             <com.google.android.material.textfield.TextInputLayout
  129.                android:layout_width="match_parent"
  130.                android:layout_height="wrap_content"
  131.                app:endIconMode="clear_text"
  132.                style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox">
  133.  
  134.                 <com.google.android.material.textfield.TextInputEditText
  135.                    android:id="@+id/edt_address"
  136.                    android:layout_width="match_parent"
  137.                    android:layout_height="wrap_content"
  138.                    android:ellipsize="end"
  139.                    android:hint="Address"
  140.                    android:inputType="text"
  141.                    android:maxLines="1" />
  142.  
  143.             </com.google.android.material.textfield.TextInputLayout>
  144.  
  145.         </LinearLayout>
  146.  
  147.         <com.google.android.material.textfield.TextInputLayout
  148.            android:layout_marginTop="24dp"
  149.            android:layout_marginStart="60dp"
  150.            android:layout_marginEnd="24dp"
  151.            android:layout_width="match_parent"
  152.            android:layout_height="wrap_content"
  153.            app:endIconMode="clear_text"
  154.            style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox">
  155.  
  156.             <com.google.android.material.textfield.TextInputEditText
  157.                android:id="@+id/edt_city"
  158.                android:layout_width="match_parent"
  159.                android:layout_height="wrap_content"
  160.                android:hint="City"
  161.                android:inputType="text"
  162.                android:maxLines="1"
  163.                android:ellipsize="end"/>
  164.  
  165.         </com.google.android.material.textfield.TextInputLayout>
  166.  
  167.         <LinearLayout
  168.            android:layout_width="match_parent"
  169.            android:layout_height="wrap_content"
  170.            android:layout_marginTop="24dp"
  171.            android:layout_marginStart="60dp"
  172.            android:layout_marginEnd="24dp"
  173.            android:orientation="horizontal"
  174.            android:gravity="center">
  175.  
  176.             <com.google.android.material.textfield.TextInputLayout
  177.                android:layout_width="match_parent"
  178.                android:layout_height="wrap_content"
  179.                android:layout_weight="1"
  180.                android:hint="State"
  181.                style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox.Dense.ExposedDropdownMenu"
  182.                android:layout_marginEnd="6dp">
  183.  
  184.                 <AutoCompleteTextView
  185.                    android:layout_width="match_parent"
  186.                    android:layout_height="wrap_content"
  187.                    android:inputType="none"
  188.                    tools:ignore="LabelFor" />
  189.  
  190.             </com.google.android.material.textfield.TextInputLayout>
  191.  
  192.             <com.google.android.material.textfield.TextInputLayout
  193.                android:layout_width="match_parent"
  194.                android:layout_height="wrap_content"
  195.                android:layout_marginStart="6dp"
  196.                app:endIconMode="clear_text"
  197.                android:layout_weight="1"
  198.                style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox">
  199.  
  200.                 <com.google.android.material.textfield.TextInputEditText
  201.                    android:id="@+id/edt_zip"
  202.                    android:layout_width="match_parent"
  203.                    android:layout_height="wrap_content"
  204.                    android:hint="Zip"
  205.                    android:inputType="text"
  206.                    android:maxLines="1"
  207.                    android:ellipsize="end"/>
  208.  
  209.             </com.google.android.material.textfield.TextInputLayout>
  210.  
  211.         </LinearLayout>
  212.  
  213.         <LinearLayout
  214.            android:layout_width="match_parent"
  215.            android:layout_height="wrap_content"
  216.            android:layout_marginTop="24dp"
  217.            android:layout_marginStart="24dp"
  218.            android:layout_marginEnd="24dp"
  219.            android:orientation="horizontal"
  220.            android:gravity="center">
  221.  
  222.             <ImageView
  223.                android:layout_width="wrap_content"
  224.                android:layout_height="wrap_content"
  225.                android:layout_marginEnd="12dp"
  226.                android:src="@drawable/ic_email" />
  227.  
  228.             <com.google.android.material.textfield.TextInputLayout
  229.                android:layout_width="match_parent"
  230.                android:layout_height="wrap_content"
  231.                app:endIconMode="clear_text"
  232.                style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox">
  233.  
  234.                 <com.google.android.material.textfield.TextInputEditText
  235.                    android:id="@+id/edt_email"
  236.                    android:layout_width="match_parent"
  237.                    android:layout_height="wrap_content"
  238.                    android:hint="Email"
  239.                    android:inputType="textEmailAddress"
  240.                    android:maxLines="1"
  241.                    android:ellipsize="end"/>
  242.  
  243.             </com.google.android.material.textfield.TextInputLayout>
  244.  
  245.         </LinearLayout>
  246.  
  247.  
  248.     </LinearLayout>
  249.  
  250. </ScrollView>
Add Comment
Please, Sign In to add comment