aboutsummaryrefslogtreecommitdiff
path: root/cashier/src/main/res
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2020-09-24 09:29:38 -0300
committerTorsten Grote <t@grobox.de>2020-09-24 09:29:38 -0300
commit841d87d5f9f05bc4a5e050948af2577cd87efade (patch)
tree40751309c611927486f4dfde9151566c69dca602 /cashier/src/main/res
parentcb96c14878499f5d55f2ac35b917f840f2a40149 (diff)
downloadtaler-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')
-rw-r--r--cashier/src/main/res/layout/fragment_about_dialog.xml81
-rw-r--r--cashier/src/main/res/menu/balance.xml4
-rw-r--r--cashier/src/main/res/values/strings.xml12
3 files changed, 97 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
diff --git a/cashier/src/main/res/menu/balance.xml b/cashier/src/main/res/menu/balance.xml
index eac38d6..816512b 100644
--- a/cashier/src/main/res/menu/balance.xml
+++ b/cashier/src/main/res/menu/balance.xml
@@ -25,5 +25,9 @@
android:id="@+id/action_lock"
android:title="@string/action_lock"
app:showAsAction="never" />
+ <item
+ android:id="@+id/action_about"
+ android:title="@string/action_about"
+ app:showAsAction="never" />
</menu>
diff --git a/cashier/src/main/res/values/strings.xml b/cashier/src/main/res/values/strings.xml
index 4a8064f..4c000d8 100644
--- a/cashier/src/main/res/values/strings.xml
+++ b/cashier/src/main/res/values/strings.xml
@@ -15,8 +15,12 @@
<string name="balance_current_label">Current balance</string>
<string name="balance_error">ERROR: %s</string>
<string name="balance_offline">Offline. Please connect to the Internet.</string>
+
+ <string name="ok">OK</string>
+
<string name="action_reconfigure">Reconfigure</string>
<string name="action_lock">Lock</string>
+ <string name="action_about">About</string>
<string name="withdraw_input_amount">Amount</string>
<string name="withdraw_into">How much e-cash should be withdrawn?</string>
@@ -40,4 +44,12 @@
<string name="transaction_last_aborted">Last Transaction: Aborted</string>
<string name="transaction_last_error">Last Transaction: Failed</string>
+ <string name="about_title">GNU Taler Cashier</string>
+ <string name="about_version">Version: %s</string>
+ <string name="about_license">License: %s</string>
+ <string name="about_license_content" translatable="false">GPL-3.0-or-later</string>
+ <string name="about_copyright">Copyright: %s</string>
+ <string name="about_copyright_holder" translatable="false">Taler Systems S.A.</string>
+ <string name="about_supported_bank_api">Bank API Version: %s</string>
+
</resources>