diff options
Diffstat (limited to 'wallet/src/main/res')
-rw-r--r-- | wallet/src/main/res/drawable/ic_delete.xml | 10 | ||||
-rw-r--r-- | wallet/src/main/res/drawable/ic_select_all.xml | 10 | ||||
-rw-r--r-- | wallet/src/main/res/layout/list_item_transaction.xml | 3 | ||||
-rw-r--r-- | wallet/src/main/res/menu/transactions_action_mode.xml | 26 | ||||
-rw-r--r-- | wallet/src/main/res/values/colors.xml | 3 | ||||
-rw-r--r-- | wallet/src/main/res/values/strings.xml | 2 | ||||
-rw-r--r-- | wallet/src/main/res/values/styles.xml | 2 |
7 files changed, 52 insertions, 4 deletions
diff --git a/wallet/src/main/res/drawable/ic_delete.xml b/wallet/src/main/res/drawable/ic_delete.xml new file mode 100644 index 0000000..88caaa1 --- /dev/null +++ b/wallet/src/main/res/drawable/ic_delete.xml @@ -0,0 +1,10 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:tint="?attr/colorControlNormal" + android:viewportWidth="24.0" + android:viewportHeight="24.0"> + <path + android:fillColor="#FF000000" + android:pathData="M6,19c0,1.1 0.9,2 2,2h8c1.1,0 2,-0.9 2,-2V7H6v12zM19,4h-3.5l-1,-1h-5l-1,1H5v2h14V4z" /> +</vector> diff --git a/wallet/src/main/res/drawable/ic_select_all.xml b/wallet/src/main/res/drawable/ic_select_all.xml new file mode 100644 index 0000000..56adb23 --- /dev/null +++ b/wallet/src/main/res/drawable/ic_select_all.xml @@ -0,0 +1,10 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:tint="?attr/colorControlNormal" + android:viewportWidth="24.0" + android:viewportHeight="24.0"> + <path + android:fillColor="#FF000000" + android:pathData="M3,5h2L5,3c-1.1,0 -2,0.9 -2,2zM3,13h2v-2L3,11v2zM7,21h2v-2L7,19v2zM3,9h2L5,7L3,7v2zM13,3h-2v2h2L13,3zM19,3v2h2c0,-1.1 -0.9,-2 -2,-2zM5,21v-2L3,19c0,1.1 0.9,2 2,2zM3,17h2v-2L3,15v2zM9,3L7,3v2h2L9,3zM11,21h2v-2h-2v2zM19,13h2v-2h-2v2zM19,21c1.1,0 2,-0.9 2,-2h-2v2zM19,9h2L21,7h-2v2zM19,17h2v-2h-2v2zM15,21h2v-2h-2v2zM15,5h2L17,3h-2v2zM7,17h10L17,7L7,7v10zM9,9h6v6L9,15L9,9z" /> +</vector> diff --git a/wallet/src/main/res/layout/list_item_transaction.xml b/wallet/src/main/res/layout/list_item_transaction.xml index a3ac980..2fabe1d 100644 --- a/wallet/src/main/res/layout/list_item_transaction.xml +++ b/wallet/src/main/res/layout/list_item_transaction.xml @@ -19,7 +19,8 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="?attr/selectableItemBackground" + android:background="@drawable/selectable_background" + android:foreground="?attr/selectableItemBackground" android:paddingStart="16dp" android:paddingTop="8dp" android:paddingEnd="16dp" diff --git a/wallet/src/main/res/menu/transactions_action_mode.xml b/wallet/src/main/res/menu/transactions_action_mode.xml new file mode 100644 index 0000000..b290b9e --- /dev/null +++ b/wallet/src/main/res/menu/transactions_action_mode.xml @@ -0,0 +1,26 @@ +<?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/> + --> + +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item + android:id="@+id/transaction_select_all" + android:icon="@drawable/ic_select_all" + android:title="@string/transactions_select_all" /> + <item + android:id="@+id/transaction_delete" + android:icon="@drawable/ic_delete" + android:title="@string/transactions_delete" /> +</menu> diff --git a/wallet/src/main/res/values/colors.xml b/wallet/src/main/res/values/colors.xml index a6b1731..6413bb8 100644 --- a/wallet/src/main/res/values/colors.xml +++ b/wallet/src/main/res/values/colors.xml @@ -18,7 +18,4 @@ <color name="colorPrimary">#283593</color> <color name="colorPrimaryDark">#1A237E</color> <color name="colorAccent">#AE1010</color> - - <color name="red">#C62828</color> - <color name="green">#558B2F</color> </resources> diff --git a/wallet/src/main/res/values/strings.xml b/wallet/src/main/res/values/strings.xml index b4af3b8..4531785 100644 --- a/wallet/src/main/res/values/strings.xml +++ b/wallet/src/main/res/values/strings.xml @@ -49,6 +49,8 @@ <string name="transactions_detail_title">Transaction</string> <string name="transactions_detail_title_balance">Balance: %s</string> <string name="transactions_detail_json">Show JSON</string> + <string name="transactions_delete">Delete</string> + <string name="transactions_select_all">Select All</string> <!-- Transactions --> <string name="transaction_reserve_balance_updated">Reserve Balance Updated</string> diff --git a/wallet/src/main/res/values/styles.xml b/wallet/src/main/res/values/styles.xml index c8a2c3b..093f43f 100644 --- a/wallet/src/main/res/values/styles.xml +++ b/wallet/src/main/res/values/styles.xml @@ -21,6 +21,8 @@ <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorAccent">@color/colorAccent</item> <item name="colorOnPrimary">@android:color/white</item> + + <item name="windowActionModeOverlay">true</item> </style> <style name="AppTheme.NoActionBar"> |