Skip to content

Instantly share code, notes, and snippets.

@muzafakar
Created September 17, 2019 13:35
Show Gist options
  • Save muzafakar/4c44c0e6ca76a11bf558582fa39e8be8 to your computer and use it in GitHub Desktop.
Save muzafakar/4c44c0e6ca76a11bf558582fa39e8be8 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/formAddressLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.appcompat.widget.AppCompatSpinner
android:id="@+id/spProvince"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="32dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="32dp"
android:background="@drawable/bg_spinner"
android:entries="@array/provinsi"
android:paddingTop="12dp"
android:paddingBottom="12dp"
android:spinnerMode="dialog"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.appcompat.widget.AppCompatSpinner
android:id="@+id/spRegency"
style="@android:style/Widget.Holo.Light.Spinner"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="32dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="16dp"
android:background="@drawable/bg_spinner"
android:entries="@array/provinsi"
android:paddingTop="12dp"
android:paddingBottom="12dp"
android:spinnerMode="dialog"
app:layout_constraintEnd_toStartOf="@id/spDistrict"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/spProvince" />
<androidx.appcompat.widget.AppCompatSpinner
android:id="@+id/spDistrict"
style="@android:style/Widget.Holo.Light.Spinner"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="32dp"
android:background="@drawable/bg_spinner"
android:entries="@array/provinsi"
android:paddingTop="12dp"
android:paddingBottom="12dp"
android:spinnerMode="dialog"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/spRegency"
app:layout_constraintTop_toBottomOf="@id/spProvince" />
<com.google.android.material.textfield.TextInputLayout
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="32dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="32dp"
app:boxBackgroundColor="@android:color/white"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/spDistrict">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/etAddress"
style="@style/AuthField"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:fontFamily="@font/opensans_regular"
android:gravity="start"
android:hint="@string/alamat_lengkap"
android:maxLines="5"
android:minHeight="108dp"
android:textAlignment="textStart" />
</com.google.android.material.textfield.TextInputLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment