fragment_error.xml (4158B)
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.ErrorFragment"> 23 24 <ImageView 25 android:id="@+id/errorImageView" 26 android:layout_width="0dp" 27 android:layout_height="0dp" 28 android:layout_margin="16dp" 29 android:alpha="0.56" 30 android:src="@drawable/ic_error" 31 app:layout_constraintBottom_toTopOf="@+id/errorTitle" 32 app:layout_constraintDimensionRatio="1.5:1" 33 app:layout_constraintEnd_toEndOf="parent" 34 app:layout_constraintStart_toStartOf="parent" 35 app:layout_constraintTop_toTopOf="parent" 36 app:layout_constraintVertical_bias="0.0" 37 app:layout_constraintVertical_chainStyle="packed" 38 app:tint="?colorError" 39 tools:ignore="ContentDescription" /> 40 41 <TextView 42 android:id="@+id/errorTitle" 43 android:layout_width="0dp" 44 android:layout_height="wrap_content" 45 android:layout_margin="16dp" 46 android:gravity="center_horizontal|top" 47 android:minHeight="64dp" 48 android:textColor="?colorError" 49 app:autoSizeMaxTextSize="40sp" 50 app:autoSizeTextType="uniform" 51 app:layout_constraintBottom_toTopOf="@+id/errorMessage" 52 app:layout_constraintEnd_toEndOf="parent" 53 app:layout_constraintStart_toStartOf="parent" 54 app:layout_constraintTop_toBottomOf="@+id/errorImageView" 55 tools:text="@string/withdraw_error_title" /> 56 57 <TextView 58 android:id="@+id/errorMessage" 59 android:layout_width="0dp" 60 android:layout_height="wrap_content" 61 android:layout_margin="16dp" 62 android:gravity="center" 63 android:textAppearance="@style/TextAppearance.Material3.TitleMedium" 64 app:layout_constraintBottom_toTopOf="@+id/errorDevMessage" 65 app:layout_constraintEnd_toEndOf="parent" 66 app:layout_constraintStart_toStartOf="parent" 67 app:layout_constraintTop_toBottomOf="@+id/errorTitle" 68 tools:text="@string/withdraw_error_message" /> 69 70 <TextView 71 android:id="@+id/errorDevMessage" 72 android:layout_width="0dp" 73 android:layout_height="wrap_content" 74 android:layout_margin="16dp" 75 android:fontFamily="monospace" 76 android:gravity="center" 77 android:textColor="?colorError" 78 android:textIsSelectable="true" 79 android:visibility="gone" 80 app:layout_constraintBottom_toTopOf="@+id/backButton" 81 app:layout_constraintEnd_toEndOf="parent" 82 app:layout_constraintStart_toStartOf="parent" 83 app:layout_constraintTop_toBottomOf="@+id/errorMessage" 84 tools:text="Error: Fetching keys failed: unexpected status for keys: 502" 85 tools:visibility="visible" /> 86 87 <Button 88 android:id="@+id/backButton" 89 android:layout_width="0dp" 90 android:layout_height="wrap_content" 91 android:layout_margin="16dp" 92 android:text="@string/button_back" 93 app:layout_constraintBottom_toBottomOf="parent" 94 app:layout_constraintEnd_toEndOf="parent" 95 app:layout_constraintStart_toStartOf="parent" /> 96 97 </androidx.constraintlayout.widget.ConstraintLayout>