forked from thijooree/android
123 lines
4.7 KiB
XML
123 lines
4.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Full-screen BML receipt, modelled on docs/bmlapi/tmp/recipt_full_*.jpg.
|
|
The receipt card is inserted at the top of cardHolder, directly followed by
|
|
the Save/Share buttons; the rest of the screen shows the footer colour. -->
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:background="@color/bml_receipt_footer">
|
|
|
|
<!-- Top bar — status bar inset is added as top padding in code -->
|
|
<FrameLayout
|
|
android:id="@+id/topBar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/bml_receipt_bg">
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="48dp">
|
|
|
|
<ImageButton
|
|
android:id="@+id/btnBack"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:layout_gravity="start|center_vertical"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:src="@drawable/ic_chevron_back"
|
|
app:tint="@color/bml_receipt_amount"
|
|
android:contentDescription="Back" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:text="Transfer successful"
|
|
android:textSize="17sp"
|
|
android:textColor="@color/bml_receipt_amount"
|
|
android:fontFamily="@font/sofia_pro" />
|
|
|
|
</FrameLayout>
|
|
|
|
</FrameLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="@color/bml_receipt_divider" />
|
|
|
|
<ScrollView
|
|
android:id="@+id/scroll"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:overScrollMode="never"
|
|
android:scrollbars="none">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/cardHolder"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<!-- receipt card goes here (index 0) -->
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="@color/bml_receipt_bottom_divider" />
|
|
|
|
<!-- Bottom actions — nav bar inset is added to bottom padding in code -->
|
|
<LinearLayout
|
|
android:id="@+id/bottomBar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:background="@color/bml_receipt_footer"
|
|
android:paddingHorizontal="20dp"
|
|
android:paddingTop="20dp"
|
|
android:paddingBottom="16dp">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btnSaveFull"
|
|
style="@style/Widget.Material3.Button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="44dp"
|
|
android:insetTop="0dp"
|
|
android:insetBottom="0dp"
|
|
android:text="Save receipt"
|
|
android:textAllCaps="false"
|
|
android:letterSpacing="0"
|
|
android:textSize="17sp"
|
|
android:textColor="#FFFFFF"
|
|
android:fontFamily="@font/sofia_pro"
|
|
app:backgroundTint="@color/bml_red"
|
|
app:cornerRadius="10dp" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btnShareFull"
|
|
style="@style/Widget.Material3.Button.TextButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="44dp"
|
|
android:layout_marginTop="8dp"
|
|
android:insetTop="0dp"
|
|
android:insetBottom="0dp"
|
|
android:text="Share receipt"
|
|
android:textAllCaps="false"
|
|
android:letterSpacing="0"
|
|
android:textSize="17sp"
|
|
android:textColor="@color/bml_receipt_message"
|
|
android:fontFamily="@font/sofia_pro"
|
|
app:rippleColor="@color/bml_receipt_divider" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
</LinearLayout>
|