mirror of
https://github.com/Nezumi-2711/Foodify.git
synced 2026-09-22 13:38:41 +00:00
115 lines
4.5 KiB
XML
115 lines
4.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:background="@drawable/bg_white_corner_16"
|
|
>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/textInput_address"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="10dp"
|
|
android:hint="Địa chỉ"
|
|
app:boxBackgroundColor="@color/white"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:startIconDrawable="@drawable/baseline_home_24"
|
|
app:startIconTint="@color/primaryColor">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/edt_address"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:inputType="text" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/linearLayout_district_ward"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="60dp"
|
|
android:layout_marginRight="10dp"
|
|
android:layout_marginLeft="10dp"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/textInput_address"
|
|
android:orientation="horizontal"
|
|
>
|
|
|
|
<Spinner
|
|
android:id="@+id/district"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:textAlignment="viewEnd"
|
|
android:gravity="end"
|
|
android:paddingEnd="25dp"
|
|
android:contentDescription="district"
|
|
android:layout_weight="0.43"
|
|
/>
|
|
|
|
<Spinner
|
|
android:id="@+id/ward"
|
|
android:textAlignment="viewEnd"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:gravity="end"
|
|
android:paddingEnd="25dp"
|
|
android:contentDescription="ward"
|
|
android:layout_weight="0.57"
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/errorTextDistrictWard"
|
|
android:text="Bạn chưa chọn quận huyện!"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="20dp"
|
|
android:textSize="12sp"
|
|
android:textColor="#b00020"
|
|
app:layout_constraintTop_toBottomOf="@id/linearLayout_district_ward"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
android:visibility="gone"
|
|
/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:background="#80000000"
|
|
android:id="@+id/progress_layout"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
android:clickable="true"
|
|
android:visibility="gone"
|
|
>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progressBarLoadData"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:indeterminateTint="@color/primaryColor"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |