95 lines
3.5 KiB
XML
95 lines
3.5 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">
|
|
|
|
<!-- Brand chip -->
|
|
<TextView
|
|
android:id="@+id/tvCardBrand"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="10dp"
|
|
android:paddingVertical="6dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:textAppearance="?attr/textAppearanceLabelSmall"
|
|
android:textColor="@android:color/white"
|
|
android:fontFamily="monospace"
|
|
android:background="@drawable/chip_background" />
|
|
|
|
<!-- Card name + number -->
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/tvCardName"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?attr/textAppearanceTitleMedium"
|
|
android:textColor="?attr/colorOnSurface" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvCardNumber"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?attr/textAppearanceTitleSmall"
|
|
android:textColor="?attr/colorOnSurfaceVariant"
|
|
android:layout_marginTop="2dp"
|
|
android:fontFamily="monospace" />
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- Status pill + balance (prepaid only) -->
|
|
<LinearLayout
|
|
android:id="@+id/layoutCardBalance"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:gravity="end"
|
|
android:layout_marginStart="16dp"
|
|
android:visibility="gone">
|
|
|
|
<TextView
|
|
android:id="@+id/tvCardStatus"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="8dp"
|
|
android:paddingVertical="3dp"
|
|
android:textAppearance="?attr/textAppearanceLabelSmall"
|
|
android:textColor="?attr/colorOnSurfaceVariant"
|
|
android:background="@drawable/pill_segment_bg"
|
|
android:visibility="gone" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvCardBalance"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?attr/textAppearanceTitleSmall"
|
|
android:textColor="?attr/colorOnSurface"
|
|
android:layout_marginTop="6dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginHorizontal="16dp"
|
|
android:background="?attr/colorOutlineVariant" />
|
|
|
|
</LinearLayout>
|