From: Damyan Ivanov Date: Fri, 7 Dec 2018 19:06:23 +0000 (+0000) Subject: convert the show hidden accounts item to a switch X-Git-Tag: v0.3~294 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=bfe0fc2a884a5df8209f17832ff0b13ca9611593;p=mobile-ledger.git convert the show hidden accounts item to a switch --- diff --git a/app/src/main/res/layout/switch_item.xml b/app/src/main/res/layout/switch_item.xml new file mode 100644 index 00000000..06b0f249 --- /dev/null +++ b/app/src/main/res/layout/switch_item.xml @@ -0,0 +1,10 @@ + + + + diff --git a/app/src/main/res/menu/account_summary.xml b/app/src/main/res/menu/account_summary.xml index 9c527466..d0d2f137 100644 --- a/app/src/main/res/menu/account_summary.xml +++ b/app/src/main/res/menu/account_summary.xml @@ -10,5 +10,9 @@ app:showAsAction="ifRoom" /> + android:checkable="true" + android:checked="false" + android:title="@string/menu_acc_summary_show_hidden_accounts_title" + app:actionLayout="@layout/switch_item" + app:showAsAction="never" /> \ No newline at end of file diff --git a/app/src/main/res/menu/account_summary_account_menu.xml b/app/src/main/res/menu/account_summary_account_menu.xml new file mode 100644 index 00000000..6ff215b8 --- /dev/null +++ b/app/src/main/res/menu/account_summary_account_menu.xml @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file