Advertisement
Hasbi_Assidiqqi

Tugas2-Muhammad Hasbi Assidiqqi

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