From 364b818d84a59640518ccdb7d3a9b8d7632b09cc Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 28 Sep 2020 21:14:11 +0200 Subject: [PATCH] Implemented displaying account features --- .../settings/BankAccountSettingsDialog.kt | 11 ++++++++++ .../layout/dialog_bank_account_settings.xml | 22 +++++++++++++++++++ .../src/main/res/values-de/strings.xml | 5 +++++ .../src/main/res/values/strings.xml | 5 +++++ 4 files changed, 43 insertions(+) diff --git a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/settings/BankAccountSettingsDialog.kt b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/settings/BankAccountSettingsDialog.kt index b4783fdd..aad2b19e 100644 --- a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/settings/BankAccountSettingsDialog.kt +++ b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/settings/BankAccountSettingsDialog.kt @@ -7,6 +7,8 @@ import kotlinx.android.synthetic.main.dialog_bank_account_settings.* import kotlinx.android.synthetic.main.dialog_bank_account_settings.view.* import kotlinx.android.synthetic.main.dialog_bank_settings.view.toolbar import net.dankito.banking.ui.android.R +import net.dankito.banking.ui.android.adapter.CheckableValueAdapterItem +import net.dankito.banking.ui.android.adapter.FastAdapterRecyclerView import net.dankito.banking.ui.model.TypedBankAccount @@ -49,6 +51,15 @@ open class BankAccountSettingsDialog : SettingsDialogBase() { lvlSubAccountNumber.setValueAndVisibilityIfValueIsSet(account.subAccountNumber) lvlIban.setValueAndVisibilityIfValueIsSet(account.iban) lvlAccountType.value = account.type.toString() // TODO: translate + + val context = rootView.context + val accountFeaturesItems = listOf( + CheckableValueAdapterItem(account.supportsRetrievingBalance, context, R.string.dialog_bank_account_settings_account_features_supports_retrieving_balance), + CheckableValueAdapterItem(account.supportsRetrievingAccountTransactions, context, R.string.dialog_bank_account_settings_account_features_supports_retrieving_account_transactions), + CheckableValueAdapterItem(account.supportsTransferringMoney, context, R.string.dialog_bank_account_settings_account_features_supports_money_transfer), + CheckableValueAdapterItem(account.supportsRealTimeTransfer, context, R.string.dialog_bank_account_settings_account_features_supports_real_time_transfer) + ) + FastAdapterRecyclerView(rootView.rcyAccountFeatures, accountFeaturesItems) } } diff --git a/ui/BankingAndroidApp/src/main/res/layout/dialog_bank_account_settings.xml b/ui/BankingAndroidApp/src/main/res/layout/dialog_bank_account_settings.xml index 076b2f7d..2422a1f0 100644 --- a/ui/BankingAndroidApp/src/main/res/layout/dialog_bank_account_settings.xml +++ b/ui/BankingAndroidApp/src/main/res/layout/dialog_bank_account_settings.xml @@ -114,6 +114,28 @@ + + + + + + + + + diff --git a/ui/BankingAndroidApp/src/main/res/values-de/strings.xml b/ui/BankingAndroidApp/src/main/res/values-de/strings.xml index c55eefb8..2d2ec498 100644 --- a/ui/BankingAndroidApp/src/main/res/values-de/strings.xml +++ b/ui/BankingAndroidApp/src/main/res/values-de/strings.xml @@ -120,6 +120,11 @@ Kontonummer Unterkontenmerkmal Typ + Unterstützt + Kontostand abrufen + Kontoumsätze abrufen + Überweisen + Echtzeitüberweisung Nicht gespeicherte Änderungen diff --git a/ui/BankingAndroidApp/src/main/res/values/strings.xml b/ui/BankingAndroidApp/src/main/res/values/strings.xml index 5f4e8bf7..87917061 100644 --- a/ui/BankingAndroidApp/src/main/res/values/strings.xml +++ b/ui/BankingAndroidApp/src/main/res/values/strings.xml @@ -120,6 +120,11 @@ Account identifier Sub account number Type + Supports + Retrieve balance + Retrieve transactions + Money transfer + Real-time transfer Unsaved changed