forked from shihaam/thijooree
8d09e760a8
Introduces a new attention row in the dashboard to display blocked funds and overdue financing. The row is conditionally visible based on the presence of blocked amounts or overdue totals. Updates the account display logic to show blocked amounts where applicable, ensuring users have a clear view of their financial status. Additionally, new string resources for "Blocked Funds" and "Overdue Financing" are added for localization.
105 lines
3.9 KiB
XML
105 lines
3.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingHorizontal="16dp"
|
|
android:paddingVertical="14dp"
|
|
android:gravity="center_vertical"
|
|
android:foreground="?attr/selectableItemBackground">
|
|
|
|
<!-- Bank / profile logo -->
|
|
<com.google.android.material.imageview.ShapeableImageView
|
|
android:id="@+id/ivBankLogo"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:scaleType="fitCenter"
|
|
android:layout_marginEnd="12dp"
|
|
app:shapeAppearanceOverlay="@style/ShapeAppearance.Circle"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto" />
|
|
|
|
<!-- Left: name / number -->
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/tvAccountName"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?attr/textAppearanceTitleMedium"
|
|
android:textColor="?attr/colorOnSurface" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvAccountNumber"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?attr/textAppearanceTitleSmall"
|
|
android:textColor="?attr/colorOnSurfaceVariant"
|
|
android:fontFamily="monospace"
|
|
android:layout_marginTop="2dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvAccountType"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?attr/textAppearanceBodySmall"
|
|
android:textColor="?attr/colorOnSurfaceVariant"
|
|
android:layout_marginTop="2dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- Right: balance + transfer button -->
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:gravity="end"
|
|
android:layout_marginStart="16dp">
|
|
|
|
<TextView
|
|
android:id="@+id/tvBalance"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?attr/textAppearanceTitleSmall"
|
|
android:textColor="?attr/colorOnSurface" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvBlocked"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="2dp"
|
|
android:textAppearance="?attr/textAppearanceLabelSmall"
|
|
android:textColor="?attr/colorError"
|
|
android:visibility="gone" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/btnTransfer"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_marginTop="4dp"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:src="@drawable/ic_send"
|
|
android:tint="?attr/colorPrimary"
|
|
android:contentDescription="Transfer" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginHorizontal="16dp"
|
|
android:background="?attr/colorOutlineVariant" />
|
|
|
|
</LinearLayout>
|