Files
BisaUMKM/app/src/main/res/layout/dialog_cancel_order.xml
2025-04-20 22:31:01 +07:00

103 lines
4.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardCornerRadius="16dp"
app:cardElevation="8dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="24dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:text="@string/cancel_order_confirmation"
android:textAlignment="center"
android:fontFamily="@font/dmsans_semibold"
android:textAppearance="@style/TextAppearance.MaterialComponents.Headline6" />
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/tilCancelReason"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:hint="@string/reason_for_cancellation">
<AutoCompleteTextView
android:id="@+id/spinnerCancelReason"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="none"
android:focusable="false" />
</com.google.android.material.textfield.TextInputLayout>
<!-- Image Upload Section -->
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/upload_evidence"
android:layout_marginBottom="8dp"
android:fontFamily="@font/dmsans_medium"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp">
<ImageView
android:id="@+id/ivComplaintImage"
android:layout_width="match_parent"
android:layout_height="150dp"
android:scaleType="centerCrop"
android:background="@drawable/bg_dashboard_border"
android:contentDescription="@string/complaint_image" />
<TextView
android:id="@+id/tvSelectImage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/tap_to_select_image"
android:drawableTop="@drawable/baseline_upload_file_24"
android:drawablePadding="8dp"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2" />
</FrameLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<com.google.android.material.button.MaterialButton
android:id="@+id/btnCancelDialog"
style="@style/RoundedBorderStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_weight="1"
android:fontFamily="@font/dmsans_semibold"
android:textColor="@color/blue_500"
android:text="@string/cancel" />
<com.google.android.material.button.MaterialButton
android:id="@+id/btnConfirmCancel"
style="@style/RoundedBorderStyleFilled"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_weight="1"
android:fontFamily="@font/dmsans_semibold"
android:text="@string/confirm" />
</LinearLayout>
</LinearLayout>
</androidx.cardview.widget.CardView>