fragment_transaction.xml (4252B)
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 <androidx.constraintlayout.widget.ConstraintLayout 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:layout_width="match_parent" 21 android:layout_height="match_parent" 22 tools:context=".withdraw.TransactionFragment"> 23 24 <TextView 25 android:id="@+id/introView" 26 android:layout_width="0dp" 27 android:layout_height="wrap_content" 28 android:layout_margin="32dp" 29 android:gravity="center_horizontal" 30 android:text="@string/transaction_intro" 31 android:textAppearance="@style/TextAppearance.AppCompat.Medium" 32 app:layout_constraintEnd_toEndOf="parent" 33 app:layout_constraintStart_toStartOf="parent" 34 app:layout_constraintTop_toTopOf="parent" /> 35 36 <TextView 37 android:id="@+id/amountView" 38 android:layout_width="0dp" 39 android:layout_height="wrap_content" 40 android:layout_margin="32dp" 41 android:gravity="center_horizontal" 42 android:textAppearance="@style/TextAppearance.AppCompat.Headline" 43 app:layout_constraintEnd_toEndOf="parent" 44 app:layout_constraintStart_toStartOf="parent" 45 app:layout_constraintTop_toBottomOf="@+id/introView" 46 tools:text="50 KUDOS" /> 47 48 <ImageView 49 android:id="@+id/qrCodeView" 50 android:layout_width="256dp" 51 android:layout_height="256dp" 52 android:layout_margin="32dp" 53 android:keepScreenOn="true" 54 android:visibility="invisible" 55 app:layout_constraintEnd_toEndOf="parent" 56 app:layout_constraintStart_toStartOf="parent" 57 app:layout_constraintTop_toBottomOf="@+id/amountView" 58 tools:ignore="ContentDescription" 59 tools:src="@drawable/ic_arrow" 60 tools:visibility="visible" /> 61 62 <ProgressBar 63 android:id="@+id/progressBar" 64 style="?android:attr/progressBarStyleLarge" 65 android:layout_width="wrap_content" 66 android:layout_height="wrap_content" 67 app:layout_constraintBottom_toBottomOf="@+id/qrCodeView" 68 app:layout_constraintEnd_toEndOf="@+id/qrCodeView" 69 app:layout_constraintStart_toStartOf="@+id/qrCodeView" 70 app:layout_constraintTop_toTopOf="@+id/qrCodeView" /> 71 72 <Button 73 android:id="@+id/cancelButton" 74 android:layout_width="wrap_content" 75 android:layout_height="wrap_content" 76 android:layout_margin="16dp" 77 android:backgroundTint="@color/red" 78 android:text="@string/transaction_abort" 79 app:layout_constraintBottom_toBottomOf="parent" 80 app:layout_constraintEnd_toStartOf="@+id/confirmButton" 81 app:layout_constraintHorizontal_chainStyle="spread_inside" 82 app:layout_constraintStart_toStartOf="parent" 83 app:layout_constraintTop_toBottomOf="@+id/qrCodeView" 84 app:layout_constraintVertical_bias="1.0" /> 85 86 <Button 87 android:id="@+id/confirmButton" 88 android:layout_width="wrap_content" 89 android:layout_height="wrap_content" 90 android:layout_margin="16dp" 91 android:backgroundTint="@color/green" 92 android:enabled="false" 93 android:text="@string/transaction_confirm" 94 app:layout_constraintBottom_toBottomOf="parent" 95 app:layout_constraintEnd_toEndOf="parent" 96 app:layout_constraintStart_toEndOf="@+id/cancelButton" 97 tools:enabled="true" /> 98 99 </androidx.constraintlayout.widget.ConstraintLayout>