payment_details.xml (5542B)
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 <ScrollView 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="0dp" 21 android:layout_height="0dp" 22 android:fillViewport="true" 23 tools:showIn="@layout/fragment_prompt_payment"> 24 25 <androidx.constraintlayout.widget.ConstraintLayout 26 android:layout_width="match_parent" 27 android:layout_height="wrap_content"> 28 29 <TextView 30 android:id="@+id/errorView" 31 android:layout_width="0dp" 32 android:layout_height="wrap_content" 33 android:layout_margin="16dp" 34 android:textAlignment="center" 35 android:textColor="@android:color/holo_red_dark" 36 android:textSize="22sp" 37 android:visibility="gone" 38 app:layout_constraintBottom_toTopOf="@+id/errorHintView" 39 app:layout_constraintEnd_toEndOf="parent" 40 app:layout_constraintStart_toStartOf="parent" 41 app:layout_constraintTop_toTopOf="parent" 42 app:layout_constraintVertical_chainStyle="packed" 43 tools:text="@string/payment_balance_insufficient" 44 tools:visibility="visible" /> 45 46 <TextView 47 android:id="@+id/errorHintView" 48 android:layout_width="0dp" 49 android:layout_height="wrap_content" 50 android:layout_margin="16dp" 51 android:textAlignment="center" 52 android:textColor="@android:color/holo_red_dark" 53 android:textSize="22sp" 54 android:visibility="gone" 55 app:layout_constraintBottom_toTopOf="@+id/orderLabelView" 56 app:layout_constraintEnd_toEndOf="parent" 57 app:layout_constraintStart_toStartOf="parent" 58 app:layout_constraintTop_toBottomOf="@id/errorView" 59 app:layout_constraintVertical_chainStyle="packed" 60 tools:text="@string/payment_balance_insufficient" 61 tools:visibility="visible" /> 62 63 <TextView 64 android:id="@+id/orderLabelView" 65 android:layout_width="0dp" 66 android:layout_height="wrap_content" 67 android:layout_marginStart="16dp" 68 android:layout_marginTop="16dp" 69 android:layout_marginEnd="16dp" 70 android:text="@string/payment_label_order_summary" 71 android:textAlignment="center" 72 android:visibility="invisible" 73 app:layout_constraintBottom_toTopOf="@+id/orderView" 74 app:layout_constraintEnd_toEndOf="parent" 75 app:layout_constraintStart_toStartOf="parent" 76 app:layout_constraintTop_toBottomOf="@+id/errorHintView" 77 tools:visibility="visible" /> 78 79 <TextView 80 android:id="@+id/orderView" 81 android:layout_width="0dp" 82 android:layout_height="wrap_content" 83 android:layout_margin="16dp" 84 android:layout_marginTop="16dp" 85 android:textAlignment="center" 86 android:textAppearance="@style/TextAppearance.AppCompat.Headline" 87 android:textSize="25sp" 88 android:visibility="invisible" 89 app:layout_constraintBottom_toTopOf="@+id/productsList" 90 app:layout_constraintEnd_toEndOf="parent" 91 app:layout_constraintStart_toStartOf="parent" 92 app:layout_constraintTop_toBottomOf="@+id/orderLabelView" 93 tools:text="2 x Cappuccino, 1 x Hot Meals, 1 x Dessert" 94 tools:visibility="visible" /> 95 96 <androidx.recyclerview.widget.RecyclerView 97 android:id="@+id/productsList" 98 android:layout_width="0dp" 99 android:layout_height="wrap_content" 100 android:layout_margin="16dp" 101 android:visibility="gone" 102 app:layout_constraintBottom_toBottomOf="parent" 103 app:layout_constraintEnd_toEndOf="parent" 104 app:layout_constraintStart_toStartOf="parent" 105 app:layout_constraintTop_toBottomOf="@+id/orderView" 106 tools:listitem="@layout/list_item_product" 107 tools:visibility="visible" /> 108 109 <ProgressBar 110 android:id="@+id/progressBar" 111 style="?android:attr/progressBarStyleLarge" 112 android:layout_width="wrap_content" 113 android:layout_height="wrap_content" 114 android:indeterminate="false" 115 android:visibility="invisible" 116 app:layout_constraintBottom_toBottomOf="parent" 117 app:layout_constraintEnd_toEndOf="parent" 118 app:layout_constraintStart_toStartOf="parent" 119 app:layout_constraintTop_toTopOf="parent" 120 tools:visibility="visible" /> 121 122 </androidx.constraintlayout.widget.ConstraintLayout> 123 124 </ScrollView>