696 lines
29 KiB
XML
696 lines
29 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fillViewport="true"
|
|
android:overScrollMode="never"
|
|
android:scrollbars="none"
|
|
android:background="#FFFFFF">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="#FFFFFF"
|
|
tools:context=".MainActivity">
|
|
|
|
<!-- Status Bar Area -->
|
|
<View
|
|
android:id="@+id/status_bar_background"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="24dp"
|
|
android:background="#E31937"
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
|
|
<!-- Red Background Header -->
|
|
<View
|
|
android:id="@+id/red_header_background"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="60dp"
|
|
android:background="#E31937"
|
|
app:layout_constraintTop_toBottomOf="@id/status_bar_background"/>
|
|
|
|
<!-- Merchant Card -->
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/merchant_card"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:translationY="-12dp"
|
|
app:cardCornerRadius="12dp"
|
|
app:cardElevation="4dp"
|
|
app:layout_constraintTop_toBottomOf="@id/status_bar_background">
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="16dp">
|
|
|
|
<!-- Logout Button di pojok kanan atas -->
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/logout_button"
|
|
style="@style/Widget.MaterialComponents.Button.TextButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Logout"
|
|
android:textColor="#DE0701"
|
|
android:textSize="11sp"
|
|
android:textAllCaps="false"
|
|
android:backgroundTint="@android:color/transparent"
|
|
android:drawableLeft="@android:drawable/ic_lock_power_off"
|
|
android:drawableTint="#DE0701"
|
|
android:drawablePadding="4dp"
|
|
android:padding="6dp"
|
|
android:minWidth="0dp"
|
|
android:minHeight="0dp"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<!-- Logo Payvora PRO -->
|
|
<ImageView
|
|
android:id="@+id/logo_payvora"
|
|
android:layout_width="144dp"
|
|
android:layout_height="36dp"
|
|
android:src="@drawable/ic_logo_icon"
|
|
android:scaleType="fitStart"
|
|
android:adjustViewBounds="true"
|
|
android:layout_marginBottom="8dp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@id/logout_button"
|
|
app:layout_constraintHorizontal_bias="0" />
|
|
|
|
<!-- Nama Toko -->
|
|
<TextView
|
|
android:id="@+id/tv_store_name"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="TOKO KLONTONG PAK EKO"
|
|
android:textColor="#061D28"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold"
|
|
android:gravity="center"
|
|
android:layout_marginTop="8dp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/logo_payvora" />
|
|
|
|
<!-- Alamat Toko -->
|
|
<TextView
|
|
android:id="@+id/tv_store_address"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:text="Ciputat Baru, Tangsel"
|
|
android:textColor="#9FA4A9"
|
|
android:textSize="14sp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/tv_store_name" />
|
|
|
|
<!-- User Info Section -->
|
|
<LinearLayout
|
|
android:id="@+id/user_info_section"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center"
|
|
android:layout_marginTop="8dp"
|
|
android:padding="8dp"
|
|
android:background="#F8F9FA"
|
|
android:visibility="gone"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/tv_store_address">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_user_welcome"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="👤 Welcome, "
|
|
android:textColor="#666666"
|
|
android:textSize="12sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_user_name"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="User Name"
|
|
android:textColor="#333333"
|
|
android:textSize="12sp"
|
|
android:textStyle="bold"
|
|
android:maxLines="1"
|
|
android:ellipsize="end" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_user_role"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="(Role)"
|
|
android:textColor="#666666"
|
|
android:textSize="11sp"
|
|
android:layout_marginStart="4dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- Divider -->
|
|
<View
|
|
android:id="@+id/divider"
|
|
android:layout_width="0dp"
|
|
android:layout_height="1dp"
|
|
android:layout_marginTop="12dp"
|
|
android:layout_marginBottom="12dp"
|
|
android:background="#EEEEEE"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/user_info_section" />
|
|
|
|
<!-- MID and TID Info -->
|
|
<LinearLayout
|
|
android:id="@+id/mid_tid_section"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/divider">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_mid"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="MID: 12345678901"
|
|
android:textColor="#9FA4A9"
|
|
android:textSize="14sp"
|
|
android:layout_marginEnd="16dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_tid"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="TID: 12345678901"
|
|
android:textColor="#9FA4A9"
|
|
android:textSize="14sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<!-- Menu Grid -->
|
|
<GridLayout
|
|
android:id="@+id/menu_grid"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:columnCount="3"
|
|
android:rowCount="5"
|
|
android:background="@android:color/white"
|
|
android:padding="8dp"
|
|
app:layout_constraintTop_toBottomOf="@id/merchant_card">
|
|
|
|
<!-- Row 1: Kartu Kredit, Kartu Debit, QRIS -->
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card_kartu_kredit"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_columnWeight="1"
|
|
android:layout_rowWeight="1"
|
|
android:layout_margin="8dp"
|
|
app:cardCornerRadius="12dp"
|
|
app:cardElevation="2dp"
|
|
app:cardBackgroundColor="#F3F4F3">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:gravity="center"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:src="@drawable/ic_credit_card"
|
|
app:tint="#E31937"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="Kartu Kredit"
|
|
style="@style/MenuCardTitle"/>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card_kartu_debit"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_columnWeight="1"
|
|
android:layout_rowWeight="1"
|
|
android:layout_margin="8dp"
|
|
app:cardCornerRadius="12dp"
|
|
app:cardElevation="2dp"
|
|
app:cardBackgroundColor="#F3F4F3">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:gravity="center"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:src="@drawable/ic_debit_card"
|
|
app:tint="#E31937"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="Kartu Debit"
|
|
style="@style/MenuCardTitle"/>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card_qris"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_columnWeight="1"
|
|
android:layout_rowWeight="1"
|
|
android:layout_margin="8dp"
|
|
app:cardCornerRadius="12dp"
|
|
app:cardElevation="2dp"
|
|
app:cardBackgroundColor="#F3F4F3">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:gravity="center"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:src="@drawable/ic_qris"
|
|
app:tint="#E31937"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="QRIS"
|
|
style="@style/MenuCardTitle"/>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<!-- Row 2: Transfer, Uang Elektronik, Cetak Ulang -->
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card_transfer"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_columnWeight="1"
|
|
android:layout_rowWeight="1"
|
|
android:layout_margin="8dp"
|
|
app:cardCornerRadius="12dp"
|
|
app:cardElevation="2dp"
|
|
app:cardBackgroundColor="#F3F4F3">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:gravity="center"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:src="@drawable/ic_transfer"
|
|
app:tint="#E31937"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="Transfer"
|
|
style="@style/MenuCardTitle"/>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card_uang_elektronik"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_columnWeight="1"
|
|
android:layout_rowWeight="1"
|
|
android:layout_margin="8dp"
|
|
app:cardCornerRadius="12dp"
|
|
app:cardElevation="2dp"
|
|
app:cardBackgroundColor="#F3F4F3">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:gravity="center"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:src="@drawable/ic_e_money"
|
|
app:tint="#E31937"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="Uang Elektronik"
|
|
style="@style/MenuCardTitle"/>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card_cetak_ulang"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_columnWeight="1"
|
|
android:layout_rowWeight="1"
|
|
android:layout_margin="8dp"
|
|
app:cardCornerRadius="12dp"
|
|
app:cardElevation="2dp"
|
|
app:cardBackgroundColor="#F3F4F3">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:gravity="center"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:src="@drawable/ic_print"
|
|
app:tint="#E31937"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="Cetak Ulang"
|
|
style="@style/MenuCardTitle"/>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<!-- Row 3: Refund, Settlement, Histori -->
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card_refund"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_columnWeight="1"
|
|
android:layout_rowWeight="1"
|
|
android:layout_margin="8dp"
|
|
app:cardCornerRadius="12dp"
|
|
app:cardElevation="2dp"
|
|
app:cardBackgroundColor="#F3F4F3">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:gravity="center"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:src="@drawable/ic_refund"
|
|
app:tint="#E31937"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="Refund"
|
|
style="@style/MenuCardTitle"/>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card_settlement"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_columnWeight="1"
|
|
android:layout_rowWeight="1"
|
|
android:layout_margin="8dp"
|
|
android:visibility="visible"
|
|
app:cardCornerRadius="12dp"
|
|
app:cardElevation="2dp"
|
|
app:cardBackgroundColor="#F3F4F3">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:gravity="center"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:src="@drawable/ic_settlement"
|
|
app:tint="#E31937"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="Settlement"
|
|
style="@style/MenuCardTitle"/>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card_histori"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_columnWeight="1"
|
|
android:layout_rowWeight="1"
|
|
android:layout_margin="8dp"
|
|
android:visibility="visible"
|
|
app:cardCornerRadius="12dp"
|
|
app:cardElevation="2dp"
|
|
app:cardBackgroundColor="#F3F4F3">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:gravity="center"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:src="@drawable/ic_history"
|
|
app:tint="#E31937"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="Histori"
|
|
style="@style/MenuCardTitle"/>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<!-- Row 4: Bantuan, Info Toko, Pengaturan -->
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card_bantuan"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_columnWeight="1"
|
|
android:layout_rowWeight="1"
|
|
android:layout_margin="8dp"
|
|
android:visibility="gone"
|
|
app:cardCornerRadius="12dp"
|
|
app:cardElevation="2dp"
|
|
app:cardBackgroundColor="#F3F4F3">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:gravity="center"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:src="@drawable/ic_help"
|
|
app:tint="#E31937"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="Bantuan"
|
|
style="@style/MenuCardTitle"/>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card_info_toko"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_columnWeight="1"
|
|
android:layout_rowWeight="1"
|
|
android:layout_margin="8dp"
|
|
android:visibility="gone"
|
|
app:cardCornerRadius="12dp"
|
|
app:cardElevation="2dp"
|
|
app:cardBackgroundColor="#F3F4F3">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:gravity="center"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:src="@drawable/ic_store_info"
|
|
app:tint="#E31937"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="Info Toko"
|
|
style="@style/MenuCardTitle"/>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card_pengaturan"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_columnWeight="1"
|
|
android:layout_rowWeight="1"
|
|
android:layout_margin="8dp"
|
|
android:visibility="gone"
|
|
app:cardCornerRadius="12dp"
|
|
app:cardElevation="2dp"
|
|
app:cardBackgroundColor="#F3F4F3">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:gravity="center"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:src="@drawable/ic_settings"
|
|
app:tint="#E31937"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="Pengaturan"
|
|
style="@style/MenuCardTitle"/>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
</GridLayout>
|
|
|
|
<!-- Lainnya Button -->
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btn_lainnya"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Tampilkan Lebih Sedikit"
|
|
android:textColor="#DE0701"
|
|
android:backgroundTint="#FFFFFF"
|
|
android:textAllCaps="false"
|
|
app:strokeColor="#DE0701"
|
|
app:strokeWidth="1dp"
|
|
app:cornerRadius="8dp"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_marginTop="8dp"
|
|
app:layout_constraintTop_toBottomOf="@id/menu_grid"/>
|
|
|
|
<!-- Scan dan Bayar Card -->
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_marginTop="24dp"
|
|
android:layout_marginBottom="24dp"
|
|
app:cardCornerRadius="12dp"
|
|
app:cardBackgroundColor="#E31937"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/btn_lainnya"
|
|
app:layout_constraintVertical_bias="0">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/scan_bayar_content"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:src="@drawable/ic_qr_code"
|
|
app:tint="@android:color/white"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_marginStart="16dp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="SCAN DAN BAYAR"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Terima pembayaran dengan QRIS secara mudah"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="12sp"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</ScrollView> |