diff --git a/app/build.gradle b/app/build.gradle
index d9a4138..59c1869 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -53,6 +53,7 @@ dependencies {
implementation libs.cardview
implementation 'androidx.recyclerview:recyclerview:1.3.0'
implementation 'androidx.cardview:cardview:1.0.0'
+ implementation 'com.google.android.material:material:1.11.0'
implementation 'com.sunmi:printerlibrary:1.0.15'
diff --git a/app/src/main/java/com/example/bdkipoc/bantuan/BantuanActivity.java b/app/src/main/java/com/example/bdkipoc/bantuan/BantuanActivity.java
index ad131f9..4d890f4 100644
--- a/app/src/main/java/com/example/bdkipoc/bantuan/BantuanActivity.java
+++ b/app/src/main/java/com/example/bdkipoc/bantuan/BantuanActivity.java
@@ -1,6 +1,7 @@
package com.example.bdkipoc.bantuan;
import android.content.Intent;
+import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
@@ -16,7 +17,7 @@ public class BantuanActivity extends AppCompatActivity {
private LinearLayout tabUmum, tabRiwayat;
private TextView textUmum, textRiwayat;
private View contentUmum, contentRiwayat;
- private Button btnForm, btnWhatsApp;
+ private LinearLayout btnForm, btnWhatsApp;
private LinearLayout backNavigation;
@Override
@@ -68,12 +69,12 @@ public class BantuanActivity extends AppCompatActivity {
initViews();
setupListeners();
- // Update tab appearance
- tabUmum.setBackgroundResource(android.R.color.holo_red_dark);
+ // Update tab appearance menggunakan drawable yang sudah dibuat
+ tabUmum.setBackgroundResource(R.drawable.tab_active_bg);
textUmum.setTextColor(ContextCompat.getColor(this, android.R.color.white));
- tabRiwayat.setBackgroundResource(android.R.color.transparent);
- textRiwayat.setTextColor(ContextCompat.getColor(this, android.R.color.holo_red_dark));
+ tabRiwayat.setBackgroundResource(R.drawable.tab_inactive_bg);
+ textRiwayat.setTextColor(Color.parseColor("#DE0701"));
}
private void showRiwayatTab() {
@@ -81,12 +82,12 @@ public class BantuanActivity extends AppCompatActivity {
initViews();
setupListeners();
- // Update tab appearance
- tabRiwayat.setBackgroundResource(android.R.color.holo_red_dark);
+ // Update tab appearance menggunakan drawable yang sudah dibuat
+ tabRiwayat.setBackgroundResource(R.drawable.tab_active_bg);
textRiwayat.setTextColor(ContextCompat.getColor(this, android.R.color.white));
- tabUmum.setBackgroundResource(android.R.color.transparent);
- textUmum.setTextColor(ContextCompat.getColor(this, android.R.color.holo_red_dark));
+ tabUmum.setBackgroundResource(R.drawable.tab_inactive_bg);
+ textUmum.setTextColor(Color.parseColor("#DE0701"));
}
private void setupFormView() {
diff --git a/app/src/main/res/drawable/border_button_red.xml b/app/src/main/res/drawable/border_button_red.xml
new file mode 100644
index 0000000..8aed961
--- /dev/null
+++ b/app/src/main/res/drawable/border_button_red.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_whatsapp.png b/app/src/main/res/drawable/ic_whatsapp.png
new file mode 100644
index 0000000..954b537
Binary files /dev/null and b/app/src/main/res/drawable/ic_whatsapp.png differ
diff --git a/app/src/main/res/drawable/tab_active_bg.xml b/app/src/main/res/drawable/tab_active_bg.xml
new file mode 100644
index 0000000..7a3ad71
--- /dev/null
+++ b/app/src/main/res/drawable/tab_active_bg.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/tab_inactive_bg.xml b/app/src/main/res/drawable/tab_inactive_bg.xml
new file mode 100644
index 0000000..68284f3
--- /dev/null
+++ b/app/src/main/res/drawable/tab_inactive_bg.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_bantuan_riwayat.xml b/app/src/main/res/layout/activity_bantuan_riwayat.xml
index 793874b..703e7fe 100644
--- a/app/src/main/res/layout/activity_bantuan_riwayat.xml
+++ b/app/src/main/res/layout/activity_bantuan_riwayat.xml
@@ -1,5 +1,6 @@
+ app:cardCornerRadius="12dp"
+ app:cardElevation="4dp">
-
-
-
+
+ android:layout_marginTop="16dp"
+ android:paddingHorizontal="16dp"
+ android:gravity="center_horizontal">
+ android:padding="12dp"
+ android:background="@drawable/tab_inactive_bg"
+ android:layout_marginEnd="8dp">
-
+ android:padding="12dp"
+ android:layout_marginStart="8dp">
-
@@ -107,7 +103,8 @@
+ android:layout_height="match_parent"
+ android:paddingBottom="16dp">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -325,34 +425,64 @@
-
+
+ android:layout_marginTop="8dp"
+ android:paddingHorizontal="16dp"
+ android:paddingVertical="16dp"
+ android:background="@android:color/white"
+ android:gravity="center">
-
+
+
+
+ android:orientation="horizontal"
+ android:gravity="center"
+ android:background="@drawable/border_button_red"
+ android:paddingHorizontal="8dp">
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_bantuan_umum.xml b/app/src/main/res/layout/activity_bantuan_umum.xml
index b937575..5f0d9d6 100644
--- a/app/src/main/res/layout/activity_bantuan_umum.xml
+++ b/app/src/main/res/layout/activity_bantuan_umum.xml
@@ -1,5 +1,6 @@
+ app:cardCornerRadius="12dp"
+ app:cardElevation="4dp">
-
-
-
+
+ android:layout_marginTop="16dp"
+ android:paddingHorizontal="16dp"
+ android:gravity="center_horizontal">
+ android:padding="12dp"
+ android:background="@drawable/tab_active_bg"
+ android:layout_marginEnd="8dp">
-
+ android:padding="12dp"
+ android:layout_marginStart="8dp">
-
@@ -107,13 +103,44 @@
+ android:layout_height="match_parent"
+ android:paddingBottom="16dp">
+
+
+
+
+
+
+
+
+
+
+
+ android:layout_marginTop="8dp"
+ android:paddingHorizontal="16dp"
+ android:paddingVertical="16dp"
+ android:background="@android:color/white"
+ android:gravity="center">
-
+
+ android:orientation="horizontal"
+ android:gravity="center"
+ android:background="@drawable/border_button_red">
-
+
+
+
+
+ android:orientation="horizontal"
+ android:gravity="center"
+ android:background="@drawable/border_button_red"
+ android:paddingHorizontal="8dp">
+
+
+
+
\ No newline at end of file