mirror of
https://github.com/shaulascr/ecommerce_serang.git
synced 2025-08-12 18:22:22 +00:00
425 lines
18 KiB
XML
425 lines
18 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:fitsSystemWindows="true"
|
|
android:id="@+id/main"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:background="@color/white"
|
|
android:theme="@style/Theme.Ecommerce_serang"
|
|
tools:context=".ui.profile.mystore.sells.payment.DetailPaymentActivity">
|
|
|
|
<include
|
|
android:id="@+id/header"
|
|
layout="@layout/header" />
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="16dp">
|
|
|
|
<!-- Payment Header -->
|
|
<View
|
|
android:id="@+id/shape_payment_order_title"
|
|
android:layout_width="4dp"
|
|
android:layout_height="10dp"
|
|
android:layout_marginTop="3dp"
|
|
android:background="@drawable/shape_sells_title"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/layout_order_sells_header"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="12dp"
|
|
app:layout_constraintStart_toStartOf="@id/shape_payment_order_title"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_order_sells_title"
|
|
style="@style/label_large_prominent"
|
|
android:layout_width="220dp"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="1"
|
|
android:text="Pesanan Telah Dibayar"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_order_sells_desc"
|
|
android:layout_width="150dp"
|
|
android:layout_height="wrap_content"
|
|
android:focusable="true"
|
|
android:maxLines="1"
|
|
style="@style/label_small"
|
|
android:fontFamily="@font/dmsans_bold"
|
|
android:layout_alignParentEnd="true"
|
|
android:textAlignment="textEnd"
|
|
android:text="Lihat Bukti Pembayaran"
|
|
android:textColor="@color/blue_500"
|
|
android:clickable="true"
|
|
android:layout_marginEnd="16dp"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<!-- Order Detail -->
|
|
<LinearLayout
|
|
android:id="@+id/layout_sells_detail"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/layout_order_sells_header"
|
|
android:paddingHorizontal="16dp"
|
|
android:layout_marginTop="8dp"
|
|
android:orientation="vertical">
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="@color/black_50"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_marginTop="7.5dp">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="No. Pesanan"
|
|
style="@style/label_small"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_order_number"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:text="123456789"
|
|
style="@style/label_small"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Nama Pembeli"
|
|
style="@style/label_small"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_order_customer"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:text="Gracie"
|
|
style="@style/label_small"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Tanggal Pembelian"
|
|
style="@style/label_small"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_order_date"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:text="9 Okt 2024, 17.00 WIB"
|
|
style="@style/label_small"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Pembayaran Otomatis Diterima"
|
|
style="@style/label_small"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_order_due"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="25 Okt; 23.59"
|
|
style="@style/label_small"
|
|
android:paddingHorizontal="4dp"
|
|
android:textColor="@color/darkblue_500"
|
|
android:background="@drawable/bg_product_active"
|
|
android:layout_alignParentEnd="true"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="8dp"
|
|
android:background="@color/black_50"
|
|
android:layout_marginTop="16dp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/layout_sells_detail"/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingVertical="14dp"
|
|
android:paddingHorizontal="16dp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Detail Produk"
|
|
style="@style/label_large_prominent"/>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/rv_product_items"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="9dp"
|
|
tools:listitem="@layout/item_sells_product"/>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="4dp">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Total Harga "
|
|
style="@style/label_small"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_order_total_product"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="(3 Barang)"
|
|
style="@style/label_small"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_order_subtotal"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:text="Rp500.000"
|
|
style="@style/label_small"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Ongkos Kirim"
|
|
style="@style/label_small"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_order_ship_price"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:text="Rp10.000"
|
|
style="@style/label_small"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginVertical="16dp"
|
|
android:background="@color/black_50"/>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintStart_toStartOf="@id/shape_payment_order_title"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
style="@style/label_large_prominent"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="1"
|
|
android:text="Total Tagihan"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_order_price"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="1"
|
|
style="@style/label_large_prominent"
|
|
android:layout_alignParentEnd="true"
|
|
android:text="Rp510.000"
|
|
android:textColor="@color/blue_500"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="8dp"
|
|
android:background="@color/black_50"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="16dp"
|
|
android:layout_marginBottom="18dp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Alamat Pengiriman"
|
|
android:layout_marginVertical="14dp"
|
|
style="@style/label_large_prominent"/>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="@color/black_50"/>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="7.5dp">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Nama Penerima"
|
|
style="@style/label_small"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_order_recipient"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:text="Gracie"
|
|
style="@style/label_small"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="No. Telepon"
|
|
style="@style/label_small"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_order_recipient_num"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:text="081234567890"
|
|
style="@style/label_small"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Alamat"
|
|
style="@style/label_small"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_order_recipient_address"
|
|
android:layout_width="223dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:textAlignment="textEnd"
|
|
android:text="Jl. Merdeka No. 45, Kecamatan Lebak Wangi, Kabupaten Serang, Banten"
|
|
style="@style/label_small"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="8dp"
|
|
android:background="@color/black_50"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="16dp"
|
|
android:orientation="horizontal"
|
|
android:gravity="bottom">
|
|
|
|
<Button
|
|
android:id="@+id/btn_hold_payment"
|
|
style="@style/button.large.secondary.medium"
|
|
android:text="Tahan Konfirmasi"/>
|
|
|
|
<Button
|
|
android:id="@+id/btn_confirm_payment"
|
|
style="@style/button.large.active.medium"
|
|
android:text="Konfirmasi Terima"
|
|
android:layout_alignParentEnd="true"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout> |