list_item_exchange.xml (2646B)
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:background="?attr/selectableItemBackground" 23 android:paddingTop="16dp" 24 android:paddingBottom="16dp"> 25 26 <TextView 27 android:id="@+id/urlView" 28 style="@style/TransactionTitle" 29 android:layout_width="0dp" 30 android:layout_height="wrap_content" 31 android:layout_marginStart="16dp" 32 android:textSize="18sp" 33 app:layout_constraintEnd_toStartOf="@+id/overflowIcon" 34 app:layout_constraintStart_toStartOf="parent" 35 app:layout_constraintTop_toTopOf="parent" 36 tools:text="exchange.test.taler.net" /> 37 38 <TextView 39 android:id="@+id/currencyView" 40 android:layout_width="0dp" 41 android:layout_height="wrap_content" 42 android:layout_marginTop="8dp" 43 android:textSize="14sp" 44 app:layout_constraintEnd_toStartOf="@+id/overflowIcon" 45 app:layout_constraintStart_toStartOf="@+id/urlView" 46 app:layout_constraintTop_toBottomOf="@+id/urlView" 47 tools:text="@string/exchange_list_currency" /> 48 49 <ImageButton 50 android:id="@+id/overflowIcon" 51 android:layout_width="48dp" 52 android:layout_height="48dp" 53 android:background="?attr/selectableItemBackgroundBorderless" 54 android:contentDescription="@string/menu" 55 android:scaleType="centerInside" 56 app:layout_constraintBottom_toBottomOf="parent" 57 app:layout_constraintEnd_toEndOf="parent" 58 app:layout_constraintTop_toTopOf="parent" 59 app:srcCompat="@drawable/ic_baseline_more_vert" /> 60 61 </androidx.constraintlayout.widget.ConstraintLayout>