Advertisement
Hasbi_Assidiqqi

Tugas2-Muhammad Hasbi Assidiqqi

Mar 21st, 2021 (edited)
858
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 16.43 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.  
  8.     <LinearLayout
  9.        android:layout_width="match_parent"
  10.        android:layout_height="wrap_content"
  11.        android:orientation="vertical">
  12.  
  13.         <RelativeLayout
  14.            android:layout_width="match_parent"
  15.            android:layout_height="200dp"
  16.            android:background="@drawable/rounded_top">
  17.  
  18.             <com.google.android.material.appbar.AppBarLayout
  19.                android:id="@+id/appbar"
  20.                android:layout_width="match_parent"
  21.                android:layout_height="wrap_content"
  22.                android:background="@android:color/transparent">
  23.  
  24.                 <com.google.android.material.appbar.MaterialToolbar
  25.                    android:layout_width="match_parent"
  26.                    android:layout_height="?attr/actionBarSize"
  27.                    app:menu="@menu/menu"
  28.                    app:navigationIcon="@drawable/ic_nav_menu" />
  29.  
  30.             </com.google.android.material.appbar.AppBarLayout>
  31.  
  32.             <TextView
  33.                android:id="@+id/tv_slogan"
  34.                android:layout_width="wrap_content"
  35.                android:layout_height="wrap_content"
  36.                android:layout_below="@+id/appbar"
  37.                android:layout_marginStart="48dp"
  38.                android:layout_marginTop="4dp"
  39.                android:text="@string/first_slogan_2"
  40.                android:textColor="@color/white"
  41.                android:textSize="32sp"
  42.                android:textStyle="bold" />
  43.  
  44.             <TextView
  45.                android:layout_width="wrap_content"
  46.                android:layout_height="wrap_content"
  47.                android:layout_below="@+id/tv_slogan"
  48.                android:layout_alignStart="@+id/tv_slogan"
  49.                android:text="@string/second_slogan_2"
  50.                android:textColor="@color/white"
  51.                android:textSize="32sp"
  52.                android:textStyle="bold" />
  53.  
  54.         </RelativeLayout>
  55.  
  56.         <LinearLayout
  57.            android:layout_width="match_parent"
  58.            android:layout_height="wrap_content"
  59.            android:layout_marginStart="@dimen/margin"
  60.            android:layout_marginTop="@dimen/margin"
  61.            android:layout_marginEnd="@dimen/margin"
  62.            android:gravity="center"
  63.            android:orientation="horizontal">
  64.  
  65.             <ImageView
  66.                android:layout_width="wrap_content"
  67.                android:layout_height="wrap_content"
  68.                android:layout_marginEnd="8dp"
  69.                android:contentDescription="@string/desc"
  70.                android:src="@drawable/ic_username" />
  71.  
  72.             <com.google.android.material.textfield.TextInputLayout
  73.                style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  74.                android:layout_width="match_parent"
  75.                android:layout_height="wrap_content"
  76.                android:textColorHint="@color/black"
  77.                app:boxCornerRadiusBottomEnd="@dimen/roundedBox"
  78.                app:boxCornerRadiusBottomStart="@dimen/roundedBox"
  79.                app:boxCornerRadiusTopEnd="@dimen/roundedBox"
  80.                app:boxCornerRadiusTopStart="@dimen/roundedBox"
  81.                app:endIconMode="clear_text">
  82.  
  83.                 <com.google.android.material.textfield.TextInputEditText
  84.                    android:id="@+id/edt_username"
  85.                    android:layout_width="match_parent"
  86.                    android:layout_height="wrap_content"
  87.                    android:ellipsize="end"
  88.                    android:hint="@string/username"
  89.                    android:inputType="text"
  90.                    android:maxLines="1" />
  91.  
  92.             </com.google.android.material.textfield.TextInputLayout>
  93.  
  94.         </LinearLayout>
  95.  
  96.         <LinearLayout
  97.            android:layout_width="match_parent"
  98.            android:layout_height="wrap_content"
  99.            android:layout_marginStart="@dimen/margin"
  100.            android:layout_marginTop="12dp"
  101.            android:layout_marginEnd="@dimen/margin"
  102.            android:gravity="center"
  103.            android:orientation="horizontal">
  104.  
  105.             <ImageView
  106.                android:layout_width="wrap_content"
  107.                android:layout_height="wrap_content"
  108.                android:layout_marginEnd="8dp"
  109.                android:contentDescription="@string/desc"
  110.                android:src="@drawable/ic_phone" />
  111.  
  112.             <com.google.android.material.textfield.TextInputLayout
  113.                style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  114.                android:layout_width="match_parent"
  115.                android:layout_height="wrap_content"
  116.                android:layout_marginEnd="6dp"
  117.                android:layout_weight="1"
  118.                android:textColorHint="@color/black"
  119.                app:boxCornerRadiusBottomEnd="@dimen/roundedBox"
  120.                app:boxCornerRadiusBottomStart="@dimen/roundedBox"
  121.                app:boxCornerRadiusTopEnd="@dimen/roundedBox"
  122.                app:boxCornerRadiusTopStart="@dimen/roundedBox"
  123.                app:endIconMode="clear_text">
  124.  
  125.                 <com.google.android.material.textfield.TextInputEditText
  126.                    android:id="@+id/edt_phone_number"
  127.                    android:layout_width="match_parent"
  128.                    android:layout_height="wrap_content"
  129.                    android:ellipsize="end"
  130.                    android:hint="@string/phone"
  131.                    android:inputType="phone"
  132.                    android:maxLines="1" />
  133.  
  134.             </com.google.android.material.textfield.TextInputLayout>
  135.  
  136.             <com.google.android.material.textfield.TextInputLayout
  137.                style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
  138.                android:layout_width="match_parent"
  139.                android:layout_height="wrap_content"
  140.                android:layout_marginStart="6dp"
  141.                android:layout_weight="1.5"
  142.                android:hint="@string/area"
  143.                app:boxCornerRadiusBottomEnd="@dimen/roundedBox"
  144.                app:boxCornerRadiusBottomStart="@dimen/roundedBox"
  145.                app:boxCornerRadiusTopEnd="@dimen/roundedBox"
  146.                app:boxCornerRadiusTopStart="@dimen/roundedBox">
  147.  
  148.                 <AutoCompleteTextView
  149.                    android:layout_width="match_parent"
  150.                    android:layout_height="wrap_content"
  151.                    android:inputType="none"
  152.                    tools:ignore="LabelFor" />
  153.  
  154.             </com.google.android.material.textfield.TextInputLayout>
  155.  
  156.         </LinearLayout>
  157.  
  158.         <LinearLayout
  159.            android:layout_width="match_parent"
  160.            android:layout_height="wrap_content"
  161.            android:layout_marginStart="@dimen/margin"
  162.            android:layout_marginTop="12dp"
  163.            android:layout_marginEnd="@dimen/margin"
  164.            android:gravity="center"
  165.            android:orientation="horizontal">
  166.  
  167.             <ImageView
  168.                android:layout_width="wrap_content"
  169.                android:layout_height="wrap_content"
  170.                android:layout_marginEnd="8dp"
  171.                android:contentDescription="@string/desc"
  172.                android:src="@drawable/ic_address" />
  173.  
  174.             <com.google.android.material.textfield.TextInputLayout
  175.                style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  176.                android:layout_width="match_parent"
  177.                android:layout_height="wrap_content"
  178.                android:textColorHint="@color/black"
  179.                app:boxCornerRadiusBottomEnd="@dimen/roundedBox"
  180.                app:boxCornerRadiusBottomStart="@dimen/roundedBox"
  181.                app:boxCornerRadiusTopEnd="@dimen/roundedBox"
  182.                app:boxCornerRadiusTopStart="@dimen/roundedBox"
  183.                app:endIconMode="clear_text">
  184.  
  185.                 <com.google.android.material.textfield.TextInputEditText
  186.                    android:id="@+id/edt_address"
  187.                    android:layout_width="match_parent"
  188.                    android:layout_height="wrap_content"
  189.                    android:ellipsize="end"
  190.                    android:hint="@string/address"
  191.                    android:inputType="text" />
  192.  
  193.             </com.google.android.material.textfield.TextInputLayout>
  194.  
  195.         </LinearLayout>
  196.  
  197.         <com.google.android.material.textfield.TextInputLayout
  198.            style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  199.            android:layout_width="match_parent"
  200.            android:layout_height="wrap_content"
  201.            android:layout_marginStart="54dp"
  202.            android:layout_marginTop="12dp"
  203.            android:layout_marginEnd="@dimen/margin"
  204.            android:textColorHint="@color/black"
  205.            app:boxCornerRadiusBottomEnd="@dimen/roundedBox"
  206.            app:boxCornerRadiusBottomStart="@dimen/roundedBox"
  207.            app:boxCornerRadiusTopEnd="@dimen/roundedBox"
  208.            app:boxCornerRadiusTopStart="@dimen/roundedBox"
  209.            app:endIconMode="clear_text">
  210.  
  211.             <com.google.android.material.textfield.TextInputEditText
  212.                android:id="@+id/edt_city"
  213.                android:layout_width="match_parent"
  214.                android:layout_height="wrap_content"
  215.                android:ellipsize="end"
  216.                android:hint="@string/city"
  217.                android:inputType="text"
  218.                android:maxLines="1" />
  219.  
  220.         </com.google.android.material.textfield.TextInputLayout>
  221.  
  222.         <LinearLayout
  223.            android:layout_width="match_parent"
  224.            android:layout_height="wrap_content"
  225.            android:layout_marginStart="54dp"
  226.            android:layout_marginTop="12dp"
  227.            android:layout_marginEnd="@dimen/margin"
  228.            android:baselineAligned="false"
  229.            android:gravity="center"
  230.            android:orientation="horizontal">
  231.  
  232.             <com.google.android.material.textfield.TextInputLayout
  233.                style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
  234.                android:layout_width="match_parent"
  235.                android:layout_height="wrap_content"
  236.                android:layout_marginEnd="6dp"
  237.                android:layout_weight="1"
  238.                android:hint="@string/state"
  239.                app:boxCornerRadiusBottomEnd="@dimen/roundedBox"
  240.                app:boxCornerRadiusBottomStart="@dimen/roundedBox"
  241.                app:boxCornerRadiusTopEnd="@dimen/roundedBox"
  242.                app:boxCornerRadiusTopStart="@dimen/roundedBox">
  243.  
  244.                 <AutoCompleteTextView
  245.                    android:layout_width="match_parent"
  246.                    android:layout_height="wrap_content"
  247.                    android:inputType="none"
  248.                    tools:ignore="LabelFor" />
  249.  
  250.             </com.google.android.material.textfield.TextInputLayout>
  251.  
  252.             <com.google.android.material.textfield.TextInputLayout
  253.                style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  254.                android:layout_width="match_parent"
  255.                android:layout_height="wrap_content"
  256.                android:layout_marginStart="6dp"
  257.                android:layout_weight="1"
  258.                android:textColorHint="@color/black"
  259.                app:boxCornerRadiusBottomEnd="@dimen/roundedBox"
  260.                app:boxCornerRadiusBottomStart="@dimen/roundedBox"
  261.                app:boxCornerRadiusTopEnd="@dimen/roundedBox"
  262.                app:boxCornerRadiusTopStart="@dimen/roundedBox"
  263.                app:endIconMode="clear_text"
  264.                app:startIconTint="@color/black">
  265.  
  266.                 <com.google.android.material.textfield.TextInputEditText
  267.                    android:id="@+id/edt_phone_zip"
  268.                    android:layout_width="match_parent"
  269.                    android:layout_height="wrap_content"
  270.                    android:ellipsize="end"
  271.                    android:hint="@string/zip"
  272.                    android:inputType="number"
  273.                    android:maxLines="1" />
  274.  
  275.             </com.google.android.material.textfield.TextInputLayout>
  276.  
  277.         </LinearLayout>
  278.  
  279.         <LinearLayout
  280.            android:layout_width="match_parent"
  281.            android:layout_height="wrap_content"
  282.            android:layout_marginStart="@dimen/margin"
  283.            android:layout_marginTop="12dp"
  284.            android:layout_marginEnd="@dimen/margin"
  285.            android:gravity="center"
  286.            android:orientation="horizontal">
  287.  
  288.             <ImageView
  289.                android:layout_width="wrap_content"
  290.                android:layout_height="wrap_content"
  291.                android:layout_marginEnd="8dp"
  292.                android:contentDescription="@string/desc"
  293.                android:src="@drawable/ic_email" />
  294.  
  295.             <com.google.android.material.textfield.TextInputLayout
  296.                style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  297.                android:layout_width="match_parent"
  298.                android:layout_height="wrap_content"
  299.                android:textColorHint="@color/black"
  300.                app:boxCornerRadiusBottomEnd="@dimen/roundedBox"
  301.                app:boxCornerRadiusBottomStart="@dimen/roundedBox"
  302.                app:boxCornerRadiusTopEnd="@dimen/roundedBox"
  303.                app:boxCornerRadiusTopStart="@dimen/roundedBox"
  304.                app:endIconMode="clear_text"
  305.                app:suffixText="@string/suff_email">
  306.  
  307.                 <com.google.android.material.textfield.TextInputEditText
  308.                    android:id="@+id/edt_email"
  309.                    android:layout_width="match_parent"
  310.                    android:layout_height="wrap_content"
  311.                    android:ellipsize="end"
  312.                    android:hint="@string/email"
  313.                    android:inputType="textEmailAddress" />
  314.  
  315.             </com.google.android.material.textfield.TextInputLayout>
  316.  
  317.         </LinearLayout>
  318.  
  319.         <LinearLayout
  320.            android:layout_width="match_parent"
  321.            android:layout_height="wrap_content"
  322.            android:layout_marginStart="@dimen/margin"
  323.            android:layout_marginTop="12dp"
  324.            android:layout_marginEnd="@dimen/margin"
  325.            android:gravity="center"
  326.            android:orientation="horizontal">
  327.  
  328.             <ImageView
  329.                android:layout_width="wrap_content"
  330.                android:layout_height="wrap_content"
  331.                android:layout_marginEnd="8dp"
  332.                android:contentDescription="@string/desc"
  333.                android:src="@drawable/ic_birthday" />
  334.  
  335.             <com.google.android.material.textfield.TextInputLayout
  336.                style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  337.                android:layout_width="match_parent"
  338.                android:layout_height="wrap_content"
  339.                android:textColorHint="@color/black"
  340.                app:boxCornerRadiusBottomEnd="@dimen/roundedBox"
  341.                app:boxCornerRadiusBottomStart="@dimen/roundedBox"
  342.                app:boxCornerRadiusTopEnd="@dimen/roundedBox"
  343.                app:boxCornerRadiusTopStart="@dimen/roundedBox"
  344.                app:endIconMode="clear_text">
  345.  
  346.                 <com.google.android.material.textfield.TextInputEditText
  347.                    android:id="@+id/edt_birthday"
  348.                    android:layout_width="match_parent"
  349.                    android:layout_height="wrap_content"
  350.                    android:drawableEnd="@drawable/ic_calendar"
  351.                    android:drawablePadding="6dp"
  352.                    android:ellipsize="end"
  353.                    android:hint="@string/birthday"
  354.                    android:inputType="date" />
  355.  
  356.             </com.google.android.material.textfield.TextInputLayout>
  357.  
  358.         </LinearLayout>
  359.  
  360.         <Button
  361.            android:layout_width="match_parent"
  362.            android:layout_height="50dp"
  363.            android:layout_gravity="center"
  364.            android:layout_margin="@dimen/margin"
  365.            android:background="@drawable/rounded_button"
  366.            android:text="@string/save"
  367.            android:textColor="@color/white"
  368.            android:textSize="18sp" />
  369.  
  370.     </LinearLayout>
  371.  
  372. </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement