Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- tools:context=".MainActivity">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <com.google.android.material.appbar.AppBarLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/purple_500">
- <com.google.android.material.appbar.MaterialToolbar
- android:layout_width="match_parent"
- android:layout_height="?attr/actionBarSize"
- app:menu="@menu/menu_main"
- app:navigationIcon="@drawable/ic_nav_menu" />
- </com.google.android.material.appbar.AppBarLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="24dp"
- android:layout_marginStart="24dp"
- android:layout_marginEnd="24dp"
- android:orientation="horizontal"
- android:gravity="center">
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="12dp"
- android:src="@drawable/ic_name" />
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:endIconMode="clear_text"
- style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox">
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/edt_name"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="Name"
- android:inputType="text"
- android:maxLines="1"
- android:ellipsize="end"/>
- </com.google.android.material.textfield.TextInputLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="24dp"
- android:layout_marginStart="24dp"
- android:layout_marginEnd="24dp"
- android:orientation="horizontal"
- android:gravity="center">
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="12dp"
- android:src="@drawable/ic_phone" />
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginEnd="6dp"
- app:endIconMode="clear_text"
- android:layout_weight="1"
- style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox">
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/edt_phone"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="Phone"
- android:inputType="phone"
- android:maxLines="1"
- android:ellipsize="end"/>
- </com.google.android.material.textfield.TextInputLayout>
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:hint="Area"
- style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox.Dense.ExposedDropdownMenu"
- android:layout_marginStart="6dp">
- <AutoCompleteTextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:inputType="none"
- tools:ignore="LabelFor" />
- </com.google.android.material.textfield.TextInputLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="24dp"
- android:layout_marginStart="24dp"
- android:layout_marginEnd="24dp"
- android:orientation="horizontal"
- android:gravity="center">
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="12dp"
- android:src="@drawable/ic_location" />
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:endIconMode="clear_text"
- style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox">
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/edt_address"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:ellipsize="end"
- android:hint="Address"
- android:inputType="text"
- android:maxLines="1" />
- </com.google.android.material.textfield.TextInputLayout>
- </LinearLayout>
- <com.google.android.material.textfield.TextInputLayout
- android:layout_marginTop="24dp"
- android:layout_marginStart="60dp"
- android:layout_marginEnd="24dp"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:endIconMode="clear_text"
- style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox">
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/edt_city"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="City"
- android:inputType="text"
- android:maxLines="1"
- android:ellipsize="end"/>
- </com.google.android.material.textfield.TextInputLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="24dp"
- android:layout_marginStart="60dp"
- android:layout_marginEnd="24dp"
- android:orientation="horizontal"
- android:gravity="center">
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:hint="State"
- style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox.Dense.ExposedDropdownMenu"
- android:layout_marginEnd="6dp">
- <AutoCompleteTextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:inputType="none"
- tools:ignore="LabelFor" />
- </com.google.android.material.textfield.TextInputLayout>
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="6dp"
- app:endIconMode="clear_text"
- android:layout_weight="1"
- style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox">
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/edt_zip"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="Zip"
- android:inputType="text"
- android:maxLines="1"
- android:ellipsize="end"/>
- </com.google.android.material.textfield.TextInputLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="24dp"
- android:layout_marginStart="24dp"
- android:layout_marginEnd="24dp"
- android:orientation="horizontal"
- android:gravity="center">
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="12dp"
- android:src="@drawable/ic_email" />
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:endIconMode="clear_text"
- style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox">
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/edt_email"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="Email"
- android:inputType="textEmailAddress"
- android:maxLines="1"
- android:ellipsize="end"/>
- </com.google.android.material.textfield.TextInputLayout>
- </LinearLayout>
- </LinearLayout>
- </ScrollView>
Add Comment
Please, Sign In to add comment