From 459d9ab0f17eefddc66ef73358345c84a913b770 Mon Sep 17 00:00:00 2001 From: riz081 Date: Fri, 30 May 2025 16:13:51 +0700 Subject: [PATCH] improve page struct --- .../com/example/bdkipoc/ReceiptActivity.java | 6 +- .../res/drawable/button_finish_background.xml | 9 ++ app/src/main/res/drawable/ic_email.png | Bin 0 -> 1090 bytes app/src/main/res/drawable/ic_print.png | Bin 0 -> 586 bytes app/src/main/res/layout/activity_receipt.xml | 139 ++++++++++++------ 5 files changed, 104 insertions(+), 50 deletions(-) create mode 100644 app/src/main/res/drawable/button_finish_background.xml create mode 100644 app/src/main/res/drawable/ic_email.png create mode 100644 app/src/main/res/drawable/ic_print.png diff --git a/app/src/main/java/com/example/bdkipoc/ReceiptActivity.java b/app/src/main/java/com/example/bdkipoc/ReceiptActivity.java index 2fd4067..1478d5b 100644 --- a/app/src/main/java/com/example/bdkipoc/ReceiptActivity.java +++ b/app/src/main/java/com/example/bdkipoc/ReceiptActivity.java @@ -36,8 +36,8 @@ public class ReceiptActivity extends AppCompatActivity { private TextView finalTotal; // Action buttons - private Button printButton; - private Button emailButton; + private LinearLayout printButton; + private LinearLayout emailButton; private Button finishButton; @Override @@ -88,7 +88,7 @@ public class ReceiptActivity extends AppCompatActivity { serviceFee = findViewById(R.id.service_fee); finalTotal = findViewById(R.id.final_total); - // Action buttons + // Action buttons - Updated to LinearLayout printButton = findViewById(R.id.print_button); emailButton = findViewById(R.id.email_button); finishButton = findViewById(R.id.finish_button); diff --git a/app/src/main/res/drawable/button_finish_background.xml b/app/src/main/res/drawable/button_finish_background.xml new file mode 100644 index 0000000..29b123f --- /dev/null +++ b/app/src/main/res/drawable/button_finish_background.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_email.png b/app/src/main/res/drawable/ic_email.png new file mode 100644 index 0000000000000000000000000000000000000000..b3049479f9b0c32cb7dcc332da2fd26e7c38aa46 GIT binary patch literal 1090 zcmV-I1ikx-P)>C^r~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E59G4rFkER6w)a?TYq>mC>Bcs$kO Y8>bhUV^2HPhX4Qo07*qoM6N<$f;b57WdHyG literal 0 HcmV?d00001 diff --git a/app/src/main/res/layout/activity_receipt.xml b/app/src/main/res/layout/activity_receipt.xml index c3bcd8b..c984672 100644 --- a/app/src/main/res/layout/activity_receipt.xml +++ b/app/src/main/res/layout/activity_receipt.xml @@ -13,7 +13,7 @@ @@ -28,7 +28,7 @@ @@ -40,18 +40,19 @@ android:orientation="horizontal" android:gravity="center_vertical" android:layout_marginStart="16dp" + android:layout_marginTop="16dp" android:background="?attr/selectableItemBackgroundBorderless" android:padding="8dp" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@id/red_status_bar" - app:layout_constraintBottom_toBottomOf="@id/red_header_background"> + app:layout_constraintTop_toBottomOf="@id/red_status_bar"> @@ -62,22 +63,22 @@ android:layout_marginStart="8dp" android:text="Kembali" android:textColor="@android:color/white" - android:textSize="14sp" + android:textSize="16sp" android:fontFamily="@font/inter"/> - + + app:cardElevation="8dp" + app:layout_constraintTop_toBottomOf="@id/red_status_bar"> - + android:orientation="horizontal" + android:gravity="center_vertical"> - + + + + + + android:layout_marginTop="2dp"/> @@ -443,40 +452,75 @@ - + -