1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2013 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<menu xmlns:android="http://schemas.android.com/apk/res/android">
18<!-- showAsAction flag impacts the behavior of SearchView.
19     When set to collapseActionView, collapsing SearchView to icon is the
20     default behavior. It would fit UX, however after expanding SearchView is
21     shown on the left site of the toolbar (replacing title). Since no way to
22     prevent this behavior was found, the flag is set to always. SearchView is
23     always visible by default and it is being collapse manually by calling
24     setIconified() method
25-->
26    <item
27        android:id="@+id/menu_search"
28        android:title="@string/menu_search"
29        android:icon="@drawable/ic_menu_search"
30        android:showAsAction="always"
31        android:actionViewClass="android.widget.SearchView"
32        android:imeOptions="actionSearch"
33        android:visible="false" />
34<!-- This group is being hidden when searching is in full bar mode-->
35    <group android:id="@+id/group_hide_when_searching">
36        <item
37            android:id="@+id/menu_debug"
38            android:title="Debug"
39            android:icon="@drawable/ic_debug_menu"
40            android:visible="false"
41            android:showAsAction="always" />
42        <item
43            android:id="@+id/menu_grid"
44            android:title="@string/menu_grid"
45            android:icon="@drawable/ic_menu_view_grid"
46            android:showAsAction="always" />
47        <item
48            android:id="@+id/menu_list"
49            android:title="@string/menu_list"
50            android:icon="@drawable/ic_menu_view_list"
51            android:showAsAction="always" />
52        <item
53            android:id="@+id/menu_new_window"
54            android:title="@string/menu_new_window"
55            android:alphabeticShortcut="n"
56            android:showAsAction="never"
57            android:visible="false" />
58        <item
59            android:id="@+id/menu_create_dir"
60            android:title="@string/menu_create_dir"
61            android:icon="@drawable/ic_menu_new_folder"
62            android:alphabeticShortcut="e"
63            android:showAsAction="never"
64            android:visible="false" />
65        <item
66            android:id="@+id/menu_select_all"
67            android:title="@string/menu_select_all"
68            android:alphabeticShortcut="a"
69            android:showAsAction="never"
70            android:visible="false" />
71        <item
72            android:id="@+id/menu_advanced"
73            android:showAsAction="never"
74            android:visible="false" />
75        <item
76            android:id="@+id/menu_settings"
77            android:title="@string/menu_settings"
78            android:showAsAction="never"
79            android:visible="false" />
80    </group>
81</menu>
82