fragment_results.xml (10753B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <androidx.constraintlayout.widget.ConstraintLayout 3 xmlns:android="http://schemas.android.com/apk/res/android" 4 xmlns:app="http://schemas.android.com/apk/res-auto" 5 xmlns:tools="http://schemas.android.com/tools" 6 android:id="@+id/root_view" 7 android:layout_width="match_parent" 8 android:layout_height="match_parent" 9 android:padding="16dp" 10 android:background="@color/colorBackground" 11 android:fitsSystemWindows="true" 12 tools:context=".Results"> 13 14 <com.google.android.material.button.MaterialButton 15 android:id="@+id/backButton" 16 style="@style/Widget.MaterialComponents.Button.TextButton" 17 android:layout_width="wrap_content" 18 android:layout_height="wrap_content" 19 android:text="@string/action_back" 20 android:textAllCaps="false" 21 android:textColor="@color/colorPrimary" 22 app:icon="@drawable/ic_arrow_back" 23 app:iconTint="@color/colorPrimary" 24 app:iconGravity="textStart" 25 app:iconPadding="4dp" 26 app:layout_constraintStart_toStartOf="parent" 27 app:layout_constraintTop_toTopOf="parent" /> 28 29 <com.google.android.material.button.MaterialButton 30 android:id="@+id/signatureButton" 31 style="@style/Widget.MaterialComponents.Button.TextButton" 32 android:layout_width="wrap_content" 33 android:layout_height="wrap_content" 34 android:text="@string/action_signature_info" 35 android:textAllCaps="false" 36 android:textColor="@color/colorPrimary" 37 android:visibility="visible" 38 app:icon="@drawable/ic_info" 39 app:iconTint="@color/colorPrimary" 40 app:iconGravity="textStart" 41 app:iconPadding="4dp" 42 app:layout_constraintEnd_toEndOf="parent" 43 app:layout_constraintTop_toTopOf="@id/backButton" 44 app:layout_constraintBaseline_toBaselineOf="@id/backButton" /> 45 46 <ImageView 47 android:id="@+id/headerLogo" 48 android:layout_width="200dp" 49 android:layout_height="60dp" 50 android:layout_marginTop="6dp" 51 android:contentDescription="@string/NGI_TALER_logo" 52 android:src="@drawable/ngi_taler_logo" 53 app:layout_constraintEnd_toEndOf="parent" 54 app:layout_constraintStart_toStartOf="parent" 55 app:layout_constraintTop_toBottomOf="@id/backButton" /> 56 57 <com.google.android.material.card.MaterialCardView 58 android:id="@+id/statusCard" 59 android:layout_width="0dp" 60 android:layout_height="wrap_content" 61 android:layout_marginTop="8dp" 62 app:cardUseCompatPadding="true" 63 app:cardCornerRadius="12dp" 64 app:cardElevation="4dp" 65 app:layout_constraintTop_toBottomOf="@id/headerLogo" 66 app:layout_constraintStart_toStartOf="parent" 67 app:layout_constraintEnd_toEndOf="parent"> 68 69 <TextView 70 android:id="@+id/sigStatus" 71 android:layout_width="match_parent" 72 android:layout_height="wrap_content" 73 android:padding="24dp" 74 android:textAlignment="center" 75 android:textAppearance="@style/TextAppearance.MaterialComponents.Headline6" 76 android:textColor="@color/colorOnPrimary" 77 tools:text="Donation statement signature is valid!" /> 78 </com.google.android.material.card.MaterialCardView> 79 80 <LinearLayout 81 android:id="@+id/summaryContainer" 82 android:layout_width="0dp" 83 android:layout_height="wrap_content" 84 android:orientation="vertical" 85 android:visibility="gone" 86 app:layout_constraintEnd_toEndOf="parent" 87 app:layout_constraintStart_toStartOf="parent" 88 app:layout_constraintTop_toBottomOf="@+id/statusCard"> 89 90 <com.google.android.material.card.MaterialCardView 91 android:id="@+id/hostCard" 92 android:layout_width="match_parent" 93 android:layout_height="wrap_content" 94 android:layout_margin="2dp" 95 app:cardCornerRadius="12dp" 96 app:cardElevation="2dp" 97 app:cardUseCompatPadding="true"> 98 99 <LinearLayout 100 android:layout_width="match_parent" 101 android:layout_height="wrap_content" 102 android:orientation="vertical" 103 android:padding="16dp"> 104 105 <TextView 106 android:id="@+id/hostLabel" 107 android:layout_width="wrap_content" 108 android:layout_height="wrap_content" 109 android:text="@string/label_host" 110 android:textAppearance="@style/TextAppearance.MaterialComponents.Caption" 111 android:textColor="@color/text_secondary" 112 android:textStyle="bold" /> 113 114 <TextView 115 android:id="@+id/hostValue" 116 android:layout_width="wrap_content" 117 android:layout_height="wrap_content" 118 android:layout_marginTop="4dp" 119 android:textAppearance="@style/TextAppearance.MaterialComponents.Body1" 120 android:textColor="@color/text_primary" 121 android:textIsSelectable="true" 122 tools:text="example.com" /> 123 124 </LinearLayout> 125 </com.google.android.material.card.MaterialCardView> 126 127 <com.google.android.material.card.MaterialCardView 128 android:id="@+id/taxCard" 129 android:layout_width="match_parent" 130 android:layout_height="wrap_content" 131 android:layout_margin="2dp" 132 app:cardCornerRadius="12dp" 133 app:cardElevation="2dp" 134 app:cardUseCompatPadding="true"> 135 136 <LinearLayout 137 android:layout_width="match_parent" 138 android:layout_height="wrap_content" 139 android:orientation="vertical" 140 android:padding="16dp"> 141 142 <TextView 143 android:id="@+id/taxLabel" 144 android:layout_width="wrap_content" 145 android:layout_height="wrap_content" 146 android:text="@string/label_tax_id" 147 android:textAppearance="@style/TextAppearance.MaterialComponents.Caption" 148 android:textColor="@color/text_secondary" 149 android:textStyle="bold" /> 150 151 <TextView 152 android:id="@+id/taxValue" 153 android:layout_width="match_parent" 154 android:layout_height="wrap_content" 155 android:layout_marginTop="4dp" 156 android:textAppearance="@style/TextAppearance.MaterialComponents.Body1" 157 android:textColor="@color/text_primary" 158 android:textIsSelectable="true" 159 tools:text="7560001010000" /> 160 161 </LinearLayout> 162 </com.google.android.material.card.MaterialCardView> 163 164 <LinearLayout 165 android:layout_width="match_parent" 166 android:layout_height="wrap_content" 167 android:baselineAligned="false" 168 android:orientation="horizontal"> 169 170 <com.google.android.material.card.MaterialCardView 171 android:id="@+id/amountCard" 172 android:layout_width="0dp" 173 android:layout_height="wrap_content" 174 android:layout_margin="2dp" 175 android:layout_weight="1" 176 app:cardCornerRadius="12dp" 177 app:cardElevation="2dp" 178 app:cardUseCompatPadding="true"> 179 180 <LinearLayout 181 android:layout_width="match_parent" 182 android:layout_height="wrap_content" 183 android:orientation="vertical" 184 android:padding="16dp"> 185 186 <TextView 187 android:id="@+id/amountLabel" 188 android:layout_width="wrap_content" 189 android:layout_height="wrap_content" 190 android:text="@string/label_amount" 191 android:textAppearance="@style/TextAppearance.MaterialComponents.Caption" 192 android:textColor="@color/text_secondary" 193 android:textStyle="bold" /> 194 195 <TextView 196 android:id="@+id/amountValue" 197 android:layout_width="wrap_content" 198 android:layout_height="wrap_content" 199 android:layout_marginTop="4dp" 200 android:textAppearance="@style/TextAppearance.MaterialComponents.Body1" 201 android:textColor="@color/text_primary" 202 android:textIsSelectable="true" 203 tools:text="EUR 15" /> 204 205 </LinearLayout> 206 </com.google.android.material.card.MaterialCardView> 207 208 <com.google.android.material.card.MaterialCardView 209 android:id="@+id/yearCard" 210 android:layout_width="0dp" 211 android:layout_height="wrap_content" 212 android:layout_margin="4dp" 213 android:layout_weight="1" 214 app:cardCornerRadius="12dp" 215 app:cardElevation="2dp" 216 app:cardUseCompatPadding="true"> 217 218 <LinearLayout 219 android:layout_width="match_parent" 220 android:layout_height="wrap_content" 221 android:orientation="vertical" 222 android:padding="16dp"> 223 224 <TextView 225 android:id="@+id/yearLabel" 226 android:layout_width="wrap_content" 227 android:layout_height="wrap_content" 228 android:text="@string/label_year" 229 android:textAppearance="@style/TextAppearance.MaterialComponents.Caption" 230 android:textColor="@color/text_secondary" 231 android:textStyle="bold" /> 232 233 <TextView 234 android:id="@+id/yearValue" 235 android:layout_width="wrap_content" 236 android:layout_height="wrap_content" 237 android:layout_marginTop="4dp" 238 android:textAppearance="@style/TextAppearance.MaterialComponents.Body1" 239 android:textColor="@color/text_primary" 240 android:textIsSelectable="true" 241 tools:text="2024" /> 242 243 </LinearLayout> 244 </com.google.android.material.card.MaterialCardView> 245 246 </LinearLayout> 247 248 </LinearLayout> 249 250 </androidx.constraintlayout.widget.ConstraintLayout>