payment_bottom_bar.xml (5580B)
1 <?xml version="1.0" encoding="utf-8"?><!-- 2 ~ This file is part of GNU Taler 3 ~ (C) 2020 Taler Systems S.A. 4 ~ 5 ~ GNU Taler is free software; you can redistribute it and/or modify it under the 6 ~ terms of the GNU General Public License as published by the Free Software 7 ~ Foundation; either version 3, or (at your option) any later version. 8 ~ 9 ~ GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY 10 ~ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 11 ~ A PARTICULAR PURPOSE. See the GNU General Public License for more details. 12 ~ 13 ~ You should have received a copy of the GNU General Public License along with 14 ~ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> 15 --> 16 17 <com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto" 19 xmlns:tools="http://schemas.android.com/tools" 20 android:id="@+id/bottomView" 21 style="@style/BottomCard" 22 android:layout_width="0dp" 23 android:layout_height="wrap_content" 24 tools:showIn="@layout/fragment_prompt_payment"> 25 26 <androidx.constraintlayout.widget.ConstraintLayout 27 android:id="@+id/bottomLayout" 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content"> 30 31 <TextView 32 android:id="@+id/totalLabelView" 33 android:layout_width="wrap_content" 34 android:layout_height="wrap_content" 35 android:text="@string/amount_total_label" 36 android:visibility="invisible" 37 app:layout_constraintBottom_toBottomOf="parent" 38 app:layout_constraintEnd_toStartOf="@+id/totalView" 39 app:layout_constraintHorizontal_bias="1.0" 40 app:layout_constraintHorizontal_chainStyle="packed" 41 app:layout_constraintStart_toStartOf="parent" 42 app:layout_constraintTop_toTopOf="@+id/totalView" 43 app:layout_constraintVertical_bias="0.0" 44 tools:visibility="visible" /> 45 46 <TextView 47 android:id="@+id/totalView" 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content" 50 android:layout_marginStart="8dp" 51 android:layout_marginTop="8dp" 52 android:layout_marginEnd="16dp" 53 android:textColor="?android:attr/textColorPrimary" 54 android:textStyle="bold" 55 android:visibility="invisible" 56 app:layout_constraintBottom_toTopOf="@+id/feeView" 57 app:layout_constraintEnd_toStartOf="@+id/confirmButton" 58 app:layout_constraintHorizontal_chainStyle="packed" 59 app:layout_constraintStart_toEndOf="@+id/totalLabelView" 60 app:layout_constraintTop_toTopOf="parent" 61 app:layout_goneMarginBottom="8dp" 62 tools:text="10 TESTKUDOS" 63 tools:visibility="visible" /> 64 65 <TextView 66 android:id="@+id/feeView" 67 android:layout_width="wrap_content" 68 android:layout_height="wrap_content" 69 android:layout_marginStart="8dp" 70 android:layout_marginEnd="16dp" 71 android:layout_marginBottom="8dp" 72 android:visibility="gone" 73 app:layout_constraintEnd_toStartOf="@+id/confirmButton" 74 app:layout_constraintHorizontal_bias="1.0" 75 app:layout_constraintStart_toStartOf="parent" 76 app:layout_constraintBottom_toBottomOf="parent" 77 app:layout_constraintTop_toBottomOf="@+id/totalView" 78 tools:text="@string/payment_fee" 79 tools:visibility="visible" /> 80 81 <Button 82 android:id="@+id/cancelButton" 83 android:layout_width="wrap_content" 84 android:layout_height="wrap_content" 85 android:layout_margin="8dp" 86 android:enabled="false" 87 style="@style/Widget.Material3.Button.OutlinedButton" 88 android:text="@string/payment_button_cancel" 89 android:textColor="?colorError" 90 app:layout_constraintBottom_toBottomOf="parent" 91 app:layout_constraintEnd_toStartOf="@id/confirmButton" 92 app:layout_constraintHorizontal_bias="0.0" 93 app:layout_constraintStart_toStartOf="parent" 94 tools:enabled="true" /> 95 96 <Button 97 android:id="@+id/confirmButton" 98 android:layout_width="wrap_content" 99 android:layout_height="wrap_content" 100 android:layout_margin="8dp" 101 android:backgroundTint="@color/green" 102 android:enabled="false" 103 android:text="@string/payment_button_confirm" 104 app:layout_constraintBottom_toBottomOf="parent" 105 app:layout_constraintEnd_toEndOf="parent" 106 app:layout_constraintTop_toTopOf="parent" 107 tools:enabled="true" /> 108 109 <ProgressBar 110 android:id="@+id/confirmProgressBar" 111 style="?android:attr/progressBarStyle" 112 android:layout_width="wrap_content" 113 android:layout_height="wrap_content" 114 android:visibility="invisible" 115 app:layout_constraintBottom_toBottomOf="@+id/confirmButton" 116 app:layout_constraintEnd_toEndOf="@+id/confirmButton" 117 app:layout_constraintStart_toStartOf="@+id/confirmButton" 118 app:layout_constraintTop_toTopOf="@+id/confirmButton" 119 tools:visibility="visible" /> 120 121 </androidx.constraintlayout.widget.ConstraintLayout> 122 123 </com.google.android.material.card.MaterialCardView>