Advertisement
Hasbi_Assidiqqi

Tugas2-Muhammad Hasbi Assidiqqi

Mar 21st, 2021 (edited)
1,449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 14.08 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.FilledBox"
  74.                android:layout_width="match_parent"
  75.                android:layout_height="wrap_content"
  76.                android:textColorHint="@color/black"
  77.                app:endIconMode="clear_text">
  78.  
  79.                 <com.google.android.material.textfield.TextInputEditText
  80.                    android:id="@+id/edt_username"
  81.                    android:layout_width="match_parent"
  82.                    android:layout_height="wrap_content"
  83.                    android:ellipsize="end"
  84.                    android:hint="@string/username"
  85.                    android:inputType="text"
  86.                    android:maxLines="1" />
  87.  
  88.             </com.google.android.material.textfield.TextInputLayout>
  89.  
  90.         </LinearLayout>
  91.  
  92.         <LinearLayout
  93.            android:layout_width="match_parent"
  94.            android:layout_height="wrap_content"
  95.            android:layout_marginStart="@dimen/margin"
  96.            android:layout_marginTop="12dp"
  97.            android:layout_marginEnd="@dimen/margin"
  98.            android:gravity="center"
  99.            android:orientation="horizontal">
  100.  
  101.             <ImageView
  102.                android:layout_width="wrap_content"
  103.                android:layout_height="wrap_content"
  104.                android:layout_marginEnd="8dp"
  105.                android:contentDescription="@string/desc"
  106.                android:src="@drawable/ic_phone" />
  107.  
  108.             <com.google.android.material.textfield.TextInputLayout
  109.                style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox"
  110.                android:layout_width="match_parent"
  111.                android:layout_height="wrap_content"
  112.                android:layout_marginEnd="6dp"
  113.                android:layout_weight="1"
  114.                android:textColorHint="@color/black"
  115.                app:endIconMode="clear_text">
  116.  
  117.                 <com.google.android.material.textfield.TextInputEditText
  118.                    android:id="@+id/edt_phone_number"
  119.                    android:layout_width="match_parent"
  120.                    android:layout_height="wrap_content"
  121.                    android:ellipsize="end"
  122.                    android:hint="@string/phone"
  123.                    android:inputType="phone"
  124.                    android:maxLines="1" />
  125.  
  126.             </com.google.android.material.textfield.TextInputLayout>
  127.  
  128.             <com.google.android.material.textfield.TextInputLayout
  129.                style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox.Dense.ExposedDropdownMenu"
  130.                android:layout_width="match_parent"
  131.                android:layout_height="wrap_content"
  132.                android:layout_marginStart="6dp"
  133.                android:layout_weight="1.5"
  134.                android:hint="@string/area">
  135.  
  136.                 <AutoCompleteTextView
  137.                    android:layout_width="match_parent"
  138.                    android:layout_height="wrap_content"
  139.                    android:inputType="none"
  140.                    tools:ignore="LabelFor" />
  141.  
  142.             </com.google.android.material.textfield.TextInputLayout>
  143.  
  144.         </LinearLayout>
  145.  
  146.         <LinearLayout
  147.            android:layout_width="match_parent"
  148.            android:layout_height="wrap_content"
  149.            android:layout_marginStart="@dimen/margin"
  150.            android:layout_marginTop="12dp"
  151.            android:layout_marginEnd="@dimen/margin"
  152.            android:gravity="center"
  153.            android:orientation="horizontal">
  154.  
  155.             <ImageView
  156.                android:layout_width="wrap_content"
  157.                android:layout_height="wrap_content"
  158.                android:layout_marginEnd="8dp"
  159.                android:contentDescription="@string/desc"
  160.                android:src="@drawable/ic_address" />
  161.  
  162.             <com.google.android.material.textfield.TextInputLayout
  163.                style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox"
  164.                android:layout_width="match_parent"
  165.                android:layout_height="wrap_content"
  166.                android:textColorHint="@color/black"
  167.                app:endIconMode="clear_text">
  168.  
  169.                 <com.google.android.material.textfield.TextInputEditText
  170.                    android:id="@+id/edt_address"
  171.                    android:layout_width="match_parent"
  172.                    android:layout_height="wrap_content"
  173.                    android:ellipsize="end"
  174.                    android:hint="@string/address"
  175.                    android:inputType="text" />
  176.  
  177.             </com.google.android.material.textfield.TextInputLayout>
  178.  
  179.         </LinearLayout>
  180.  
  181.         <com.google.android.material.textfield.TextInputLayout
  182.            style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox"
  183.            android:layout_width="match_parent"
  184.            android:layout_height="wrap_content"
  185.            android:layout_marginStart="54dp"
  186.            android:layout_marginTop="12dp"
  187.            android:layout_marginEnd="@dimen/margin"
  188.            android:textColorHint="@color/black"
  189.            app:endIconMode="clear_text">
  190.  
  191.             <com.google.android.material.textfield.TextInputEditText
  192.                android:id="@+id/edt_city"
  193.                android:layout_width="match_parent"
  194.                android:layout_height="wrap_content"
  195.                android:ellipsize="end"
  196.                android:hint="@string/city"
  197.                android:inputType="text"
  198.                android:maxLines="1" />
  199.  
  200.         </com.google.android.material.textfield.TextInputLayout>
  201.  
  202.         <LinearLayout
  203.            android:layout_width="match_parent"
  204.            android:layout_height="wrap_content"
  205.            android:layout_marginStart="54dp"
  206.            android:layout_marginTop="12dp"
  207.            android:layout_marginEnd="@dimen/margin"
  208.            android:baselineAligned="false"
  209.            android:gravity="center"
  210.            android:orientation="horizontal">
  211.  
  212.             <com.google.android.material.textfield.TextInputLayout
  213.                style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox.Dense.ExposedDropdownMenu"
  214.                android:layout_width="match_parent"
  215.                android:layout_height="wrap_content"
  216.                android:layout_marginEnd="6dp"
  217.                android:layout_weight="1"
  218.                android:hint="@string/state">
  219.  
  220.                 <AutoCompleteTextView
  221.                    android:layout_width="match_parent"
  222.                    android:layout_height="wrap_content"
  223.                    android:inputType="none"
  224.                    tools:ignore="LabelFor" />
  225.  
  226.             </com.google.android.material.textfield.TextInputLayout>
  227.  
  228.             <com.google.android.material.textfield.TextInputLayout
  229.                style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox"
  230.                android:layout_width="match_parent"
  231.                android:layout_height="wrap_content"
  232.                android:layout_marginStart="6dp"
  233.                android:layout_weight="1"
  234.                android:textColorHint="@color/black"
  235.                app:endIconMode="clear_text"
  236.                app:startIconTint="@color/black">
  237.  
  238.                 <com.google.android.material.textfield.TextInputEditText
  239.                    android:id="@+id/edt_phone_zip"
  240.                    android:layout_width="match_parent"
  241.                    android:layout_height="wrap_content"
  242.                    android:ellipsize="end"
  243.                    android:hint="@string/zip"
  244.                    android:inputType="number"
  245.                    android:maxLines="1" />
  246.  
  247.             </com.google.android.material.textfield.TextInputLayout>
  248.  
  249.         </LinearLayout>
  250.  
  251.         <LinearLayout
  252.            android:layout_width="match_parent"
  253.            android:layout_height="wrap_content"
  254.            android:layout_marginStart="@dimen/margin"
  255.            android:layout_marginTop="12dp"
  256.            android:layout_marginEnd="@dimen/margin"
  257.            android:gravity="center"
  258.            android:orientation="horizontal">
  259.  
  260.             <ImageView
  261.                android:layout_width="wrap_content"
  262.                android:layout_height="wrap_content"
  263.                android:layout_marginEnd="8dp"
  264.                android:contentDescription="@string/desc"
  265.                android:src="@drawable/ic_email" />
  266.  
  267.             <com.google.android.material.textfield.TextInputLayout
  268.                style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox"
  269.                android:layout_width="match_parent"
  270.                android:layout_height="wrap_content"
  271.                android:textColorHint="@color/black"
  272.                app:endIconMode="clear_text"
  273.                app:suffixText="@string/suff_email">
  274.  
  275.                 <com.google.android.material.textfield.TextInputEditText
  276.                    android:id="@+id/edt_email"
  277.                    android:layout_width="match_parent"
  278.                    android:layout_height="wrap_content"
  279.                    android:ellipsize="end"
  280.                    android:hint="@string/email"
  281.                    android:inputType="textEmailAddress" />
  282.  
  283.             </com.google.android.material.textfield.TextInputLayout>
  284.  
  285.         </LinearLayout>
  286.  
  287.         <LinearLayout
  288.            android:layout_width="match_parent"
  289.            android:layout_height="wrap_content"
  290.            android:layout_marginStart="@dimen/margin"
  291.            android:layout_marginTop="12dp"
  292.            android:layout_marginEnd="@dimen/margin"
  293.            android:gravity="center"
  294.            android:orientation="horizontal">
  295.  
  296.             <ImageView
  297.                android:layout_width="wrap_content"
  298.                android:layout_height="wrap_content"
  299.                android:layout_marginEnd="8dp"
  300.                android:contentDescription="@string/desc"
  301.                android:src="@drawable/ic_birthday" />
  302.  
  303.             <com.google.android.material.textfield.TextInputLayout
  304.                style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox"
  305.                android:layout_width="match_parent"
  306.                android:layout_height="wrap_content"
  307.                android:textColorHint="@color/black"
  308.                app:endIconMode="clear_text">
  309.  
  310.                 <com.google.android.material.textfield.TextInputEditText
  311.                    android:id="@+id/edt_birthday"
  312.                    android:layout_width="match_parent"
  313.                    android:layout_height="wrap_content"
  314.                    android:drawableEnd="@drawable/ic_calendar"
  315.                    android:drawablePadding="6dp"
  316.                    android:ellipsize="end"
  317.                    android:hint="@string/birthday"
  318.                    android:inputType="date" />
  319.  
  320.             </com.google.android.material.textfield.TextInputLayout>
  321.  
  322.         </LinearLayout>
  323.  
  324.         <Button
  325.            android:layout_width="match_parent"
  326.            android:layout_height="50dp"
  327.            android:layout_gravity="center"
  328.            android:layout_margin="@dimen/margin"
  329.            android:text="@string/save"
  330.            android:textColor="@color/white"
  331.            android:textSize="18sp" />
  332.  
  333.     </LinearLayout>
  334.  
  335. </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement