<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright © 2019 Damyan Ivanov.
+ ~ This file is part of MoLe.
+ ~ MoLe 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.
+ ~
+ ~ MoLe 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 MoLe. 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: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"
+ />
+ <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: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:icon="@drawable/ic_check_white_24dp" />
</menu>
\ No newline at end of file