mirror of
https://github.com/shaulascr/ecommerce_serang.git
synced 2025-12-16 07:51:02 +00:00
123 lines
4.4 KiB
XML
123 lines
4.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout 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"
|
|
android:orientation="vertical"
|
|
android:padding="16dp">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Tambah Metode Pembayaran"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold"
|
|
android:layout_marginBottom="16dp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:background="@drawable/bg_text_field"
|
|
android:gravity="center_vertical"
|
|
android:layout_marginTop="10dp">
|
|
|
|
<Spinner
|
|
android:id="@+id/spinner_bank_name"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:padding="8dp"
|
|
style="@style/body_small"
|
|
android:background="@null"/>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/bank_name_progress_bar"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:padding="4dp"
|
|
android:visibility="gone"/>
|
|
|
|
<!-- Chevron Down Icon -->
|
|
<ImageView
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:src="@drawable/ic_down"
|
|
android:layout_marginEnd="8dp"
|
|
android:contentDescription="Chevron Down" />
|
|
|
|
</LinearLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="8dp"
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/edt_account_name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="Nama Pemilik Rekening" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="16dp"
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/edt_bank_number"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="Nomor Rekening"
|
|
android:inputType="number" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="QRIS (Opsional)"
|
|
android:textStyle="bold"
|
|
android:layout_marginBottom="8dp" />
|
|
|
|
<Button
|
|
android:id="@+id/btn_add_qris"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Tambah Gambar QRIS"
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
|
android:layout_marginBottom="8dp" />
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_qris_preview"
|
|
android:layout_width="150dp"
|
|
android:layout_height="150dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginBottom="16dp"
|
|
android:scaleType="centerCrop"
|
|
android:visibility="gone"
|
|
android:contentDescription="QRIS Preview" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="end">
|
|
|
|
<Button
|
|
android:id="@+id/btn_cancel"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Batal"
|
|
style="@style/Widget.MaterialComponents.Button.TextButton"
|
|
android:layout_marginEnd="8dp" />
|
|
|
|
<Button
|
|
android:id="@+id/btn_save"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Simpan" />
|
|
</LinearLayout>
|
|
</LinearLayout> |