list_item_history.xml (4259B)
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="wrap_content" 22 android:padding="16dp"> 23 24 <TextView 25 android:id="@+id/orderSummaryView" 26 android:layout_width="0dp" 27 android:layout_height="wrap_content" 28 android:textColor="?android:attr/textColorPrimary" 29 android:textSize="20sp" 30 android:textStyle="bold" 31 app:layout_constraintEnd_toStartOf="@+id/orderAmountView" 32 app:layout_constraintHorizontal_bias="1.0" 33 app:layout_constraintHorizontal_chainStyle="spread_inside" 34 app:layout_constraintStart_toStartOf="parent" 35 app:layout_constraintTop_toTopOf="parent" 36 tools:text="One Cappuccino or another name that can be so long that it spans more than one line" /> 37 38 <TextView 39 android:id="@+id/orderAmountView" 40 android:layout_width="wrap_content" 41 android:layout_height="wrap_content" 42 android:layout_marginStart="8dp" 43 android:layout_marginEnd="16dp" 44 android:textColor="?android:attr/textColorPrimary" 45 android:textSize="20sp" 46 android:textStyle="bold" 47 app:layout_constraintBottom_toBottomOf="@+id/orderSummaryView" 48 app:layout_constraintEnd_toStartOf="@+id/refundButton" 49 app:layout_constraintStart_toEndOf="@+id/orderSummaryView" 50 app:layout_constraintTop_toTopOf="parent" 51 app:layout_constraintVertical_bias="0.0" 52 tools:text="23.42 TESTKUDOS" /> 53 54 <TextView 55 android:id="@+id/orderIdView" 56 android:layout_width="0dp" 57 android:layout_height="wrap_content" 58 android:layout_marginTop="8dp" 59 android:text="@string/history_ref_no" 60 android:textAllCaps="false" 61 android:textSize="20sp" 62 app:layout_constraintBottom_toBottomOf="parent" 63 app:layout_constraintEnd_toStartOf="@+id/orderTimeView" 64 app:layout_constraintHorizontal_bias="0.5" 65 app:layout_constraintHorizontal_chainStyle="spread_inside" 66 app:layout_constraintStart_toStartOf="parent" 67 app:layout_constraintTop_toBottomOf="@+id/orderSummaryView" /> 68 69 <TextView 70 android:id="@+id/orderTimeView" 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 android:layout_marginStart="8dp" 74 android:layout_marginTop="8dp" 75 android:layout_marginEnd="16dp" 76 android:textSize="20sp" 77 app:layout_constraintBottom_toBottomOf="parent" 78 app:layout_constraintEnd_toStartOf="@+id/refundButton" 79 app:layout_constraintStart_toEndOf="@+id/orderIdView" 80 app:layout_constraintTop_toBottomOf="@+id/orderAmountView" 81 app:layout_constraintVertical_bias="1.0" 82 tools:text="3 hrs. ago" /> 83 84 <ImageButton 85 android:id="@+id/refundButton" 86 android:layout_width="48dp" 87 android:layout_height="48dp" 88 android:backgroundTint="?colorPrimary" 89 android:contentDescription="@string/history_refund" 90 app:layout_constraintBottom_toBottomOf="parent" 91 app:layout_constraintEnd_toEndOf="parent" 92 app:layout_constraintTop_toTopOf="parent" 93 app:srcCompat="@drawable/ic_cash_refund" 94 app:tint="?attr/colorOnPrimary" /> 95 96 </androidx.constraintlayout.widget.ConstraintLayout>