list_item_tos.xml (3086B)
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.cardview.widget.CardView 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 app:cardUseCompatPadding="true"> 23 24 <androidx.constraintlayout.widget.ConstraintLayout 25 android:layout_width="match_parent" 26 android:layout_height="wrap_content"> 27 28 <TextView 29 android:id="@+id/sectionTitle" 30 android:layout_width="0dp" 31 android:layout_height="wrap_content" 32 android:background="?attr/selectableItemBackground" 33 android:paddingStart="8dp" 34 android:paddingTop="8dp" 35 android:paddingEnd="56dp" 36 android:paddingBottom="8dp" 37 android:textAppearance="@style/TextAppearance.AppCompat.Headline" 38 app:layout_constraintEnd_toEndOf="parent" 39 app:layout_constraintStart_toStartOf="parent" 40 app:layout_constraintTop_toTopOf="parent" 41 tools:text="A Terms of Service section title that might be rather long in some cases" /> 42 43 <ImageView 44 android:id="@+id/expandButton" 45 android:layout_width="48dp" 46 android:layout_height="0dp" 47 android:padding="8dp" 48 android:scaleType="center" 49 android:src="@drawable/ic_keyboard_arrow_up" 50 app:layout_constraintBottom_toBottomOf="@+id/sectionTitle" 51 app:layout_constraintEnd_toEndOf="parent" 52 app:layout_constraintTop_toTopOf="@+id/sectionTitle" 53 app:tint="?android:attr/textColorPrimary" 54 tools:ignore="ContentDescription" /> 55 56 <TextView 57 android:id="@+id/sectionText" 58 android:layout_width="0dp" 59 android:layout_height="wrap_content" 60 android:padding="8dp" 61 app:layout_constraintBottom_toBottomOf="parent" 62 app:layout_constraintEnd_toEndOf="parent" 63 app:layout_constraintStart_toStartOf="parent" 64 app:layout_constraintTop_toBottomOf="@+id/sectionTitle" 65 tools:text="@tools:sample/lorem/random" /> 66 67 </androidx.constraintlayout.widget.ConstraintLayout> 68 69 </androidx.cardview.widget.CardView>