fragment_refund_uri.xml (4641B)
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=".payment.ProcessPaymentFragment"> 23 24 <ImageView 25 android:id="@+id/refundQrcodeView" 26 android:layout_width="0dp" 27 android:layout_height="0dp" 28 android:layout_margin="32dp" 29 app:layout_constraintBottom_toBottomOf="parent" 30 app:layout_constraintEnd_toStartOf="@+id/guideline" 31 app:layout_constraintStart_toStartOf="parent" 32 app:layout_constraintTop_toTopOf="parent" 33 tools:ignore="ContentDescription" 34 tools:src="@tools:sample/avatars" /> 35 36 <androidx.constraintlayout.widget.Guideline 37 android:id="@+id/guideline" 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 android:orientation="vertical" 41 app:layout_constraintGuide_percent="0.54" /> 42 43 <TextView 44 android:id="@+id/refundIntroView" 45 android:layout_width="0dp" 46 android:layout_height="wrap_content" 47 android:layout_margin="16dp" 48 android:text="@string/refund_intro_nfc" 49 android:textAlignment="center" 50 android:textSize="22sp" 51 app:layout_constraintBottom_toTopOf="@+id/refundAmountView" 52 app:layout_constraintEnd_toEndOf="parent" 53 app:layout_constraintStart_toStartOf="@+id/guideline" 54 app:layout_constraintTop_toTopOf="parent" 55 app:layout_constraintVertical_chainStyle="spread" /> 56 57 <TextView 58 android:id="@+id/refundAmountView" 59 android:layout_width="wrap_content" 60 android:layout_height="wrap_content" 61 android:layout_margin="16dp" 62 android:textAppearance="@style/TextAppearance.AppCompat.Headline" 63 app:layout_constraintBottom_toTopOf="@+id/refundRefView" 64 app:layout_constraintEnd_toEndOf="parent" 65 app:layout_constraintStart_toStartOf="@+id/guideline" 66 app:layout_constraintTop_toBottomOf="@+id/refundIntroView" 67 tools:text="10.49 TESTKUDOS" /> 68 69 <TextView 70 android:id="@+id/refundRefView" 71 android:layout_width="0dp" 72 android:layout_height="wrap_content" 73 android:layout_margin="16dp" 74 android:textAlignment="center" 75 app:layout_constraintBottom_toTopOf="@id/cancelRefundButton" 76 app:layout_constraintEnd_toEndOf="parent" 77 app:layout_constraintStart_toStartOf="@+id/guideline" 78 app:layout_constraintTop_toBottomOf="@+id/refundAmountView" 79 tools:text="@string/refund_order_ref" /> 80 81 <Button 82 android:id="@+id/cancelRefundButton" 83 android:layout_width="wrap_content" 84 android:layout_height="wrap_content" 85 android:layout_margin="16dp" 86 android:backgroundTint="@color/red" 87 android:text="@string/refund_abort" 88 app:layout_constraintBottom_toBottomOf="parent" 89 app:layout_constraintEnd_toEndOf="parent" 90 app:layout_constraintEnd_toStartOf="@+id/completeButton" 91 app:layout_constraintHorizontal_chainStyle="spread_inside" 92 app:layout_constraintStart_toEndOf="@+id/refundQrcodeView" 93 app:layout_constraintStart_toStartOf="@+id/guideline" /> 94 95 <Button 96 android:id="@+id/completeButton" 97 android:layout_width="wrap_content" 98 android:layout_height="wrap_content" 99 android:layout_margin="16dp" 100 android:backgroundTint="@color/green" 101 android:text="@string/refund_complete" 102 app:layout_constraintBottom_toBottomOf="parent" 103 app:layout_constraintEnd_toEndOf="parent" 104 app:layout_constraintStart_toEndOf="@+id/cancelRefundButton" /> 105 106 </androidx.constraintlayout.widget.ConstraintLayout>