]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/menu/account_summary.xml
major refactor, make account summary and transaction list fragments, part of the...
[mobile-ledger.git] / app / src / main / res / menu / account_summary.xml
index 9c527466dbc3d5ba629eb7d8da848fe62e2d0423..d2bd884a8bfe87b788fb8e5b4b549d379a53c47e 100644 (file)
@@ -1,14 +1,51 @@
 <?xml version="1.0" encoding="utf-8"?>
+<!--
+  ~ Copyright © 2018 Damyan Ivanov.
+  ~ This file is part of Mobile-Ledger.
+  ~ Mobile-Ledger is free software: you can distribute it and/or modify it
+  ~ under the term of the GNU General Public License as published by
+  ~ the Free Software Foundation, either version 3 of the License, or
+  ~ (at your opinion), any later version.
+  ~
+  ~ Mobile-Ledger 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 terms for details.
+  ~
+  ~ You should have received a copy of the GNU General Public License
+  ~ along with Mobile-Ledger. If not, see <https://www.gnu.org/licenses/>.
+  -->
+
 <menu xmlns:app="http://schemas.android.com/apk/res-auto"
-    xmlns:android="http://schemas.android.com/apk/res/android">
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    tools:context="net.ktnx.mobileledger.ui.activity.MainActivity">
 
     <item
-        android:id="@+id/menu_acc_summary_refresh"
-        android:icon="@drawable/ic_refresh_white_24dp"
-        android:title="@string/menu_acc_summary_refresh_title"
-        android:onClick="onRefreshAccountSummaryClicked"
-        app:showAsAction="ifRoom" />
-    <item
-        android:id="@+id/menu_acc_summary_show_hidden"
-        android:title="@string/menu_acc_summary_show_hidden_accounts_title" />
+        android:id="@+id/menu_acc_summary_only_starred"
+        android:checkable="true"
+        android:checked="false"
+        android:onClick="onOptionsMenuClicked"
+        android:title="@string/menu_acc_summary_show_only_starred_title"
+        app:actionLayout="@layout/switch_item"
+        app:showAsAction="never" />
+    <item android:id="@+id/menu_acc_summary_hide_selected"
+        android:icon="@drawable/ic_star_white_24dp"
+        android:title="@string/menu_acc_summary_hide_selected_title"
+        app:showAsAction="always"
+        android:visible="false"
+        android:onClick="onOptionsMenuClicked"
+        />
+    <item android:id="@+id/menu_acc_summary_cancel_selection"
+        android:title="@string/menu_acc_summary_cancel_selection_title"
+        app:showAsAction="always"
+        android:visible="false"
+        android:onClick="onOptionsMenuClicked"
+        android:icon="@drawable/ic_cancel_white_24dp" />
+    <item android:id="@+id/menu_acc_summary_confirm_selection"
+        android:title="@string/menu_acc_summary_confirm_selection_title"
+        app:showAsAction="always"
+        android:visible="false"
+        android:onClick="onOptionsMenuClicked"
+        android:icon="@drawable/ic_check_white_24dp" />
 </menu>
\ No newline at end of file