2016-03-23 17:47:06 +03:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
ownCloud Android client application
|
|
|
|
|
|
|
|
Copyright (C) 2016 ownCloud Inc.
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License version 2,
|
|
|
|
as published by the Free Software Foundation.
|
|
|
|
|
|
|
|
This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
-->
|
|
|
|
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
2016-03-24 00:51:37 +03:00
|
|
|
<!--
|
|
|
|
standard menu
|
|
|
|
all items in this group MUST have orderInCategory="0" set
|
2017-03-10 20:36:18 +03:00
|
|
|
|
2016-03-24 00:51:37 +03:00
|
|
|
-->
|
2017-03-14 12:02:35 +03:00
|
|
|
<group
|
|
|
|
android:id="@+id/drawer_menu_standard"
|
|
|
|
android:checkableBehavior="single">
|
2016-03-23 17:47:06 +03:00
|
|
|
<item
|
|
|
|
android:id="@+id/nav_all_files"
|
|
|
|
android:icon="@drawable/ic_folder_open"
|
2017-03-14 12:02:35 +03:00
|
|
|
android:orderInCategory="0"
|
2017-03-12 16:26:37 +03:00
|
|
|
android:title="@string/drawer_item_all_files"/>
|
2017-03-31 12:09:33 +03:00
|
|
|
<item
|
|
|
|
android:id="@+id/nav_activity"
|
|
|
|
android:icon="@drawable/ic_activity"
|
|
|
|
android:title="@string/drawer_item_activities"/>
|
2017-03-11 02:53:31 +03:00
|
|
|
<item
|
|
|
|
android:id="@+id/nav_favorites"
|
2017-03-31 12:02:44 +03:00
|
|
|
android:icon="@drawable/ic_star"
|
2017-03-14 12:02:35 +03:00
|
|
|
android:orderInCategory="0"
|
2017-03-11 02:53:31 +03:00
|
|
|
android:title="@string/drawer_item_favorites"/>
|
2016-04-07 00:36:01 +03:00
|
|
|
<item
|
2017-03-12 16:26:37 +03:00
|
|
|
android:id="@+id/nav_photos"
|
|
|
|
android:icon="@drawable/file_image"
|
2017-03-14 12:02:35 +03:00
|
|
|
android:title="@string/drawer_item_photos"
|
|
|
|
android:visible="false"/>
|
2016-03-23 17:47:06 +03:00
|
|
|
<item
|
2017-03-31 12:09:33 +03:00
|
|
|
android:id="@+id/nav_videos"
|
|
|
|
android:icon="@drawable/file_movie"
|
2017-03-14 12:02:35 +03:00
|
|
|
android:orderInCategory="0"
|
2017-03-31 12:09:33 +03:00
|
|
|
android:title="@string/drawer_item_videos"
|
2017-03-10 20:36:18 +03:00
|
|
|
android:visible="false"/>
|
|
|
|
<item
|
|
|
|
android:id="@+id/nav_shared"
|
2017-03-14 12:02:35 +03:00
|
|
|
android:orderInCategory="0"
|
|
|
|
android:icon="@drawable/ic_shared"
|
2017-03-10 20:36:18 +03:00
|
|
|
android:title="@string/drawer_item_shared"
|
|
|
|
android:visible="false"/>
|
2017-03-12 16:26:37 +03:00
|
|
|
<item
|
|
|
|
android:id="@+id/nav_on_device"
|
|
|
|
android:icon="@drawable/ic_action_available_offline"
|
2017-03-14 12:02:35 +03:00
|
|
|
android:orderInCategory="0"
|
2017-03-12 16:26:37 +03:00
|
|
|
android:title="@string/drawer_item_on_device"/>
|
2016-09-20 02:04:48 +03:00
|
|
|
<item
|
2017-03-31 12:09:33 +03:00
|
|
|
android:id="@+id/nav_recently_added"
|
|
|
|
android:icon="@drawable/ic_recent"
|
|
|
|
android:orderInCategory="0"
|
|
|
|
android:title="@string/drawer_item_recently_added"
|
|
|
|
android:visible="false"/>
|
|
|
|
<item
|
|
|
|
android:id="@+id/nav_recently_modified"
|
|
|
|
android:icon="@drawable/ic_recent"
|
|
|
|
android:orderInCategory="0"
|
|
|
|
android:title="@string/drawer_item_recently_modified"
|
|
|
|
android:visible="false"/>
|
2017-03-27 01:55:20 +03:00
|
|
|
<item
|
|
|
|
android:orderInCategory="0"
|
|
|
|
android:id="@+id/nav_notifications"
|
|
|
|
android:icon="@drawable/ic_notification"
|
|
|
|
android:title="@string/drawer_item_notifications"/>
|
2016-09-20 02:04:48 +03:00
|
|
|
<item
|
|
|
|
android:orderInCategory="0"
|
|
|
|
android:id="@+id/nav_folder_sync"
|
2016-10-24 16:21:00 +03:00
|
|
|
android:icon="@drawable/ic_cloud_upload"
|
2016-09-20 02:04:48 +03:00
|
|
|
android:title="@string/drawer_folder_sync"/>
|
2017-03-31 12:09:33 +03:00
|
|
|
<item
|
|
|
|
android:id="@+id/nav_uploads"
|
|
|
|
android:icon="@drawable/ic_uploads"
|
|
|
|
android:orderInCategory="2"
|
|
|
|
android:title="@string/drawer_item_uploads_list"/>
|
2016-03-23 17:47:06 +03:00
|
|
|
</group>
|
|
|
|
|
2016-03-24 00:51:37 +03:00
|
|
|
<!--
|
|
|
|
account list placeholder
|
|
|
|
all items in this group MUST have orderInCategory="2" set
|
|
|
|
all accounts are dynamically added with orderInCategory="1" set
|
|
|
|
-->
|
|
|
|
<group android:id="@+id/drawer_menu_accounts">
|
|
|
|
<item
|
|
|
|
android:id="@+id/drawer_menu_account_add"
|
|
|
|
android:icon="@drawable/ic_account_plus"
|
2017-03-14 12:02:35 +03:00
|
|
|
android:orderInCategory="2"
|
2016-03-24 00:51:37 +03:00
|
|
|
android:title="@string/prefs_add_account"/>
|
|
|
|
<item
|
|
|
|
android:id="@+id/drawer_menu_account_manage"
|
2016-07-14 15:21:44 +03:00
|
|
|
android:icon="@drawable/ic_settings"
|
2017-03-14 12:02:35 +03:00
|
|
|
android:orderInCategory="2"
|
2016-03-24 00:51:37 +03:00
|
|
|
android:title="@string/drawer_manage_accounts"/>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<!--
|
2017-04-06 09:48:12 +03:00
|
|
|
all items in this group MUST have orderInCategory="3" set
|
|
|
|
-->
|
|
|
|
<group
|
|
|
|
android:id="@+id/drawer_menu_external_links"
|
|
|
|
android:checkableBehavior="single">
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
all items in this group MUST have orderInCategory="4" set
|
2016-03-24 00:51:37 +03:00
|
|
|
-->
|
2017-03-14 12:02:35 +03:00
|
|
|
<group
|
|
|
|
android:id="@+id/drawer_menu_bottom"
|
|
|
|
android:checkableBehavior="single">
|
2017-04-12 15:34:43 +03:00
|
|
|
<item
|
|
|
|
android:id="@+id/nav_contacts"
|
|
|
|
android:icon="@drawable/ic_user"
|
|
|
|
android:orderInCategory="3"
|
|
|
|
android:title="@string/actionbar_contacts"/>
|
2016-03-23 17:47:06 +03:00
|
|
|
<item
|
|
|
|
android:id="@+id/nav_settings"
|
2016-07-14 15:21:44 +03:00
|
|
|
android:icon="@drawable/ic_settings"
|
2017-04-06 09:48:12 +03:00
|
|
|
android:orderInCategory="4"
|
2016-03-23 17:47:06 +03:00
|
|
|
android:title="@string/actionbar_settings"/>
|
2016-09-04 00:13:34 +03:00
|
|
|
<item
|
|
|
|
android:id="@+id/nav_participate"
|
2016-09-04 21:35:52 +03:00
|
|
|
android:icon="@drawable/ic_participate"
|
2017-04-06 09:48:12 +03:00
|
|
|
android:orderInCategory="4"
|
2016-09-06 20:36:02 +03:00
|
|
|
android:title="@string/drawer_participate"/>
|
2016-03-23 17:47:06 +03:00
|
|
|
</group>
|
2016-08-08 18:27:47 +03:00
|
|
|
|
|
|
|
<!--
|
|
|
|
dummy group/element as a workaround to see
|
|
|
|
the whole menu in case of quota being displayed
|
|
|
|
-->
|
|
|
|
<group>
|
|
|
|
<item
|
|
|
|
android:enabled="false"
|
|
|
|
android:orderInCategory="200"
|
|
|
|
android:title=""/>
|
|
|
|
</group>
|
2016-03-23 17:47:06 +03:00
|
|
|
</menu>
|