125 lines
4.7 KiB
XML
125 lines
4.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<com.google.android.material.card.MaterialCardView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="320dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="12dp"
|
|
app:cardCornerRadius="16dp"
|
|
app:cardElevation="4dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:id="@+id/ivCardImage"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:scaleType="fitCenter"
|
|
android:adjustViewBounds="true"
|
|
android:contentDescription="@string/nav_card_settings"/>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="80dp"
|
|
android:layout_gravity="bottom"
|
|
android:background="@drawable/bg_card_overlay_gradient"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvCardStatus"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="top|end"
|
|
android:layout_margin="8dp"
|
|
android:paddingStart="6dp"
|
|
android:paddingEnd="6dp"
|
|
android:paddingTop="2dp"
|
|
android:paddingBottom="2dp"
|
|
android:textSize="9sp"
|
|
android:textColor="#FFFFFF"
|
|
android:textStyle="bold"
|
|
android:visibility="gone"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|start"
|
|
android:orientation="vertical"
|
|
android:padding="12dp">
|
|
|
|
<TextView
|
|
android:id="@+id/tvCardOwner"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?attr/textAppearanceLabelMedium"
|
|
android:textColor="#FFFFFF"
|
|
android:textStyle="bold"
|
|
android:shadowColor="#80000000"
|
|
android:shadowDx="1"
|
|
android:shadowDy="1"
|
|
android:shadowRadius="3"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvCardNumber"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="2dp"
|
|
android:textAppearance="?attr/textAppearanceBodySmall"
|
|
android:textColor="#CCFFFFFF"
|
|
android:fontFamily="monospace"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</FrameLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="10dp"
|
|
android:paddingEnd="10dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="10dp">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btnPayQr"
|
|
style="@style/Widget.Material3.Button.TonalButton"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="4dp"
|
|
android:minWidth="0dp"
|
|
android:minHeight="0dp"
|
|
android:text="@string/card_pay_qr"
|
|
android:textSize="11sp"
|
|
app:icon="@drawable/ic_qr_scan"
|
|
app:iconSize="16dp"
|
|
app:iconPadding="4dp"/>
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btnPayNfc"
|
|
style="@style/Widget.Material3.Button.TonalButton"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:minWidth="0dp"
|
|
android:minHeight="0dp"
|
|
android:text="@string/card_pay_nfc"
|
|
android:textSize="11sp"
|
|
app:icon="@drawable/ic_nfc"
|
|
app:iconSize="16dp"
|
|
app:iconPadding="4dp"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|