]> gitweb.stoutner.com Git - PrivacyCell.git/blobdiff - app/src/main/res/menu/navigation_menu_bottom_appbar.xml
Add an option to use a bottom app bar. https://redmine.stoutner.com/issues/749
[PrivacyCell.git] / app / src / main / res / menu / navigation_menu_bottom_appbar.xml
diff --git a/app/src/main/res/menu/navigation_menu_bottom_appbar.xml b/app/src/main/res/menu/navigation_menu_bottom_appbar.xml
new file mode 100644 (file)
index 0000000..cdbf1d8
--- /dev/null
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 of the License, or
+  (at your option) any later version.
+
+  Privacy Cell 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 Privacy Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+    <item
+        android:id="@+id/donations"
+        android:title="@string/donations"
+        android:icon="@drawable/donations"
+        android:orderInCategory="10" />
+
+    <!-- If a group has an id, a line is drawn above it in the navigation view. -->
+    <group android:id="@+id/links" >
+        <item
+            android:id="@+id/forum"
+            android:title="@string/forum"
+            android:icon="@drawable/forum"
+            android:orderInCategory="20" />
+
+        <item
+            android:id="@+id/bug_tracker"
+            android:title="@string/bug_tracker"
+            android:icon="@drawable/bug_tracker"
+            android:orderInCategory="30" />
+
+        <item
+            android:id="@+id/roadmap"
+            android:title="@string/roadmap"
+            android:icon="@drawable/roadmap"
+            android:orderInCategory="40" />
+
+        <item
+            android:id="@+id/news"
+            android:title="@string/news"
+            android:icon="@drawable/news"
+            android:orderInCategory="50" />
+    </group>
+
+    <!-- If a group has an id, a line is drawn above it in the navigation view. -->
+    <group android:id="@+id/dialogs" >
+        <item
+            android:id="@+id/contributors"
+            android:title="@string/contributors"
+            android:icon="@drawable/contributors"
+            android:orderInCategory="60" />
+
+        <item
+            android:id="@+id/licenses"
+            android:title="@string/licenses"
+            android:icon="@drawable/licenses"
+            android:orderInCategory="70" />
+
+        <item
+            android:id="@+id/changelog"
+            android:title="@string/changelog"
+            android:icon="@drawable/changelog"
+            android:orderInCategory="80" />
+
+        <item
+            android:id="@+id/privacy_policy"
+            android:title="@string/privacy_policy"
+            android:icon="@drawable/privacy_policy"
+            android:orderInCategory="90" />
+
+        <item
+            android:id="@+id/permissions"
+            android:title="@string/permissions"
+            android:icon="@drawable/permissions"
+            android:orderInCategory="100" />
+    </group>
+
+    <!-- If a group has an id, a line is drawn above it in the navigation view. -->
+    <group android:id="@+id/settings_group" >
+        <item
+            android:id="@+id/settings"
+            android:title="@string/settings"
+            android:icon="@drawable/settings"
+            android:orderInCategory="110" />
+    </group>
+</menu>
\ No newline at end of file