pending finaces on dashboard is now a button that takes you to finaces page

This commit is contained in:
2026-05-23 23:12:50 +05:00
parent 473e051282
commit 8e345746ed
2 changed files with 8 additions and 1 deletions

View File

@@ -53,6 +53,10 @@ class DashboardFragment : Fragment() {
binding.swipeRefresh.isRefreshing = false
}
binding.cardPendingFinances.setOnClickListener {
(activity as? HomeActivity)?.navigateTo(R.id.nav_finances)
}
val cardAdapter = DashboardCardAdapter()
binding.rvCards.layoutManager = LinearLayoutManager(requireContext(), LinearLayoutManager.HORIZONTAL, false)
binding.rvCards.adapter = cardAdapter

View File

@@ -178,11 +178,14 @@
<!-- Pending Finances card -->
<com.google.android.material.card.MaterialCardView
android:id="@+id/cardPendingFinances"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:cardElevation="1dp"
app:cardCornerRadius="12dp">
app:cardCornerRadius="12dp"
android:clickable="true"
android:focusable="true">
<LinearLayout
android:layout_width="match_parent"