fragment_transaction.xml (4751B)
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_toStartOf="@+id/guideline" 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_toStartOf="@+id/guideline" 44 app:layout_constraintStart_toStartOf="parent" 45 app:layout_constraintTop_toBottomOf="@+id/introView" 46 tools:text="50 KUDOS" /> 47 48 <androidx.constraintlayout.widget.Guideline 49 android:id="@+id/guideline" 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:orientation="vertical" 53 app:layout_constraintGuide_percent="0.5" /> 54 55 <ImageView 56 android:id="@+id/qrCodeView" 57 android:layout_width="256dp" 58 android:layout_height="256dp" 59 android:layout_margin="32dp" 60 android:keepScreenOn="true" 61 android:visibility="invisible" 62 app:layout_constraintBottom_toBottomOf="parent" 63 app:layout_constraintEnd_toEndOf="parent" 64 app:layout_constraintStart_toStartOf="@+id/guideline" 65 app:layout_constraintTop_toTopOf="parent" 66 tools:ignore="ContentDescription" 67 tools:src="@drawable/ic_arrow" 68 tools:visibility="visible" /> 69 70 <ProgressBar 71 android:id="@+id/progressBar" 72 style="?android:attr/progressBarStyleLarge" 73 android:layout_width="wrap_content" 74 android:layout_height="wrap_content" 75 app:layout_constraintBottom_toBottomOf="@+id/qrCodeView" 76 app:layout_constraintEnd_toEndOf="@+id/qrCodeView" 77 app:layout_constraintStart_toStartOf="@+id/qrCodeView" 78 app:layout_constraintTop_toTopOf="@+id/qrCodeView" /> 79 80 <Button 81 android:id="@+id/cancelButton" 82 android:layout_width="wrap_content" 83 android:layout_height="wrap_content" 84 android:layout_margin="16dp" 85 android:backgroundTint="@color/red" 86 android:text="@string/transaction_abort" 87 app:layout_constraintBottom_toBottomOf="parent" 88 app:layout_constraintEnd_toStartOf="@+id/confirmButton" 89 app:layout_constraintHorizontal_bias="0.5" 90 app:layout_constraintHorizontal_chainStyle="spread_inside" 91 app:layout_constraintStart_toStartOf="parent" 92 app:layout_constraintTop_toBottomOf="@+id/qrCodeView" 93 app:layout_constraintVertical_bias="1.0" /> 94 95 <Button 96 android:id="@+id/confirmButton" 97 android:layout_width="wrap_content" 98 android:layout_height="wrap_content" 99 android:layout_margin="16dp" 100 android:backgroundTint="@color/green" 101 android:enabled="false" 102 android:text="@string/transaction_confirm" 103 app:layout_constraintBottom_toBottomOf="parent" 104 app:layout_constraintEnd_toEndOf="parent" 105 app:layout_constraintEnd_toStartOf="@+id/guideline" 106 app:layout_constraintHorizontal_bias="0.5" 107 app:layout_constraintStart_toEndOf="@+id/cancelButton" 108 tools:enabled="true" /> 109 110 </androidx.constraintlayout.widget.ConstraintLayout>