diff options
author | Torsten Grote <t@grobox.de> | 2020-09-24 09:29:38 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2020-09-24 09:29:38 -0300 |
commit | 841d87d5f9f05bc4a5e050948af2577cd87efade (patch) | |
tree | 40751309c611927486f4dfde9151566c69dca602 /cashier/src/main/res/layout | |
parent | cb96c14878499f5d55f2ac35b917f840f2a40149 (diff) | |
download | taler-android-841d87d5f9f05bc4a5e050948af2577cd87efade.tar.gz taler-android-841d87d5f9f05bc4a5e050948af2577cd87efade.tar.bz2 taler-android-841d87d5f9f05bc4a5e050948af2577cd87efade.zip |
[cashier] Add about screen with version and license info
Diffstat (limited to 'cashier/src/main/res/layout')
-rw-r--r-- | cashier/src/main/res/layout/fragment_about_dialog.xml | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/cashier/src/main/res/layout/fragment_about_dialog.xml b/cashier/src/main/res/layout/fragment_about_dialog.xml new file mode 100644 index 0000000..2bb7742 --- /dev/null +++ b/cashier/src/main/res/layout/fragment_about_dialog.xml @@ -0,0 +1,81 @@ +<?xml version="1.0" encoding="utf-8"?><!-- + ~ This file is part of GNU Taler + ~ (C) 2020 Taler Systems S.A. + ~ + ~ GNU Taler is free software; you can redistribute it and/or modify it under the + ~ terms of the GNU General Public License as published by the Free Software + ~ Foundation; either version 3, or (at your option) any later version. + ~ + ~ GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY + ~ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR + ~ A PARTICULAR PURPOSE. See the GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License along with + ~ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> + --> + +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:padding="16dp" + tools:context=".AboutDialogFragment"> + + <TextView + android:id="@+id/titleView" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:maxLines="1" + android:text="@string/about_title" + android:textAppearance="@style/TextAppearance.AppCompat.Headline" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + + <TextView + android:id="@+id/versionView" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="16dp" + android:text="@string/about_version" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/titleView" /> + + <TextView + android:id="@+id/bankVersionView" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="16dp" + android:text="@string/about_supported_bank_api" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/versionView" /> + + <TextView + android:id="@+id/licenseView" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="16dp" + android:text="@string/about_license" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/bankVersionView" /> + + <TextView + android:id="@+id/copyrightView" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="16dp" + android:text="@string/about_copyright" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/licenseView" /> + + <Button + android:id="@+id/button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="16dp" + android:text="@string/ok" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toBottomOf="@+id/copyrightView" /> + +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file |