diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..c5f3f6b
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,3 @@
+{
+ "java.configuration.updateBuildConfiguration": "interactive"
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/bdkipoc/MainActivity.java b/app/src/main/java/com/example/bdkipoc/MainActivity.java
index 1f62a57..2172489 100644
--- a/app/src/main/java/com/example/bdkipoc/MainActivity.java
+++ b/app/src/main/java/com/example/bdkipoc/MainActivity.java
@@ -3,39 +3,60 @@ package com.example.bdkipoc;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;
+import android.widget.Button;
-import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;
-import androidx.core.graphics.Insets;
-import androidx.core.view.ViewCompat;
-import androidx.core.view.WindowInsetsCompat;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
- EdgeToEdge.enable(this);
setContentView(R.layout.activity_main);
- ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
- Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
- v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
- return insets;
- });
- // Set up click listeners for the cards
- CardView paymentCard = findViewById(R.id.card_payment);
- CardView transactionsCard = findViewById(R.id.card_transactions);
+ setupMenuListeners();
+ }
- paymentCard.setOnClickListener(v -> {
- // Launch payment activity
- startActivity(new android.content.Intent(MainActivity.this, PaymentActivity.class));
- });
+ private void setupMenuListeners() {
+ // Create a map of card IDs to menu names
+ int[] cardIds = {
+ R.id.card_kartu_kredit,
+ R.id.card_kartu_debit,
+ R.id.card_qris,
+ R.id.card_transfer,
+ R.id.card_uang_elektronik,
+ R.id.card_cetak_ulang,
+ R.id.card_refund,
+ R.id.card_settlement,
+ R.id.card_histori
+ };
- transactionsCard.setOnClickListener(v -> {
- // Launch transactions activity
- startActivity(new android.content.Intent(MainActivity.this, TransactionActivity.class));
- });
+ String[] menuNames = {
+ "Kartu Kredit",
+ "Kartu Debit",
+ "QRIS",
+ "Transfer",
+ "Uang Elektronik",
+ "Cetak Ulang",
+ "Refund",
+ "Settlement",
+ "Histori"
+ };
+
+ // Set click listeners for all cards
+ for (int i = 0; i < cardIds.length; i++) {
+ CardView card = findViewById(cardIds[i]);
+ final String menuName = menuNames[i];
+ card.setOnClickListener(v ->
+ Toast.makeText(this, menuName + " Diklik", Toast.LENGTH_SHORT).show()
+ );
+ }
+
+ // Set click listener for Lainnya button
+ Button btnLainnya = findViewById(R.id.btn_lainnya);
+ btnLainnya.setOnClickListener(v ->
+ Toast.makeText(this, "Lainnya Diklik", Toast.LENGTH_SHORT).show()
+ );
}
}
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_credit_card.png b/app/src/main/res/drawable/ic_credit_card.png
new file mode 100644
index 0000000..d2f7d13
Binary files /dev/null and b/app/src/main/res/drawable/ic_credit_card.png differ
diff --git a/app/src/main/res/drawable/ic_debit_card.png b/app/src/main/res/drawable/ic_debit_card.png
new file mode 100644
index 0000000..cb88c93
Binary files /dev/null and b/app/src/main/res/drawable/ic_debit_card.png differ
diff --git a/app/src/main/res/drawable/ic_e_money.xml b/app/src/main/res/drawable/ic_e_money.xml
new file mode 100644
index 0000000..7e3db0d
--- /dev/null
+++ b/app/src/main/res/drawable/ic_e_money.xml
@@ -0,0 +1,10 @@
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_history.png b/app/src/main/res/drawable/ic_history.png
new file mode 100644
index 0000000..ec4662c
Binary files /dev/null and b/app/src/main/res/drawable/ic_history.png differ
diff --git a/app/src/main/res/drawable/ic_qris.png b/app/src/main/res/drawable/ic_qris.png
new file mode 100644
index 0000000..3c29a49
Binary files /dev/null and b/app/src/main/res/drawable/ic_qris.png differ
diff --git a/app/src/main/res/drawable/ic_refund.png b/app/src/main/res/drawable/ic_refund.png
new file mode 100644
index 0000000..1d5a902
Binary files /dev/null and b/app/src/main/res/drawable/ic_refund.png differ
diff --git a/app/src/main/res/drawable/ic_reprint.png b/app/src/main/res/drawable/ic_reprint.png
new file mode 100644
index 0000000..0274f2b
Binary files /dev/null and b/app/src/main/res/drawable/ic_reprint.png differ
diff --git a/app/src/main/res/drawable/ic_settlement.xml b/app/src/main/res/drawable/ic_settlement.xml
new file mode 100644
index 0000000..89dfa1f
--- /dev/null
+++ b/app/src/main/res/drawable/ic_settlement.xml
@@ -0,0 +1,10 @@
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_transfer.xml b/app/src/main/res/drawable/ic_transfer.xml
new file mode 100644
index 0000000..e80167e
--- /dev/null
+++ b/app/src/main/res/drawable/ic_transfer.xml
@@ -0,0 +1,10 @@
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index 6597de9..53556bc 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -1,91 +1,470 @@
-
-
+
+
+
+
+
+
+
+ app:layout_constraintTop_toBottomOf="@id/status_bar">
-
-
+ android:text="TOKO KLONTONG PAK EKO"
+ android:textColor="@android:color/black"
+ android:textSize="18sp"
+ android:textStyle="bold"/>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ app:cardBackgroundColor="#E31937"
+ app:layout_constraintBottom_toBottomOf="parent">
+ android:layout_width="48dp"
+ android:layout_height="48dp"
+ android:src="@drawable/ic_qris"
+ android:tint="@android:color/white"/>
-
+ android:layout_weight="1"
+ android:layout_marginStart="16dp"
+ android:orientation="vertical">
+
+
+
+
+
diff --git a/gradlew b/gradlew
old mode 100644
new mode 100755