blob: b791ef12b6f38979a3a0bf7afa55684ea8ea739b [file] [log] [blame]
Jeff Sharkey09c10bf2013-06-30 20:02:59 -07001<?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">
Aga Wronska1f7f2392016-01-08 17:29:24 -080018<!-- 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-->
Jeff Sharkey09c10bf2013-06-30 20:02:59 -070026 <item
Jeff Sharkey46165b52013-07-31 20:53:22 -070027 android:id="@+id/menu_search"
28 android:title="@string/menu_search"
Jeff Sharkey06c41872013-09-06 10:43:45 -070029 android:icon="@drawable/ic_menu_search"
Aga Wronska1f7f2392016-01-08 17:29:24 -080030 android:showAsAction="always"
Jeff Sharkey46165b52013-07-31 20:53:22 -070031 android:actionViewClass="android.widget.SearchView"
Steve McKayd4800812016-02-02 11:41:03 -080032 android:imeOptions="actionSearch"
33 android:visible="false" />
Jeff Sharkey2e694f82013-08-06 16:26:14 -070034 <item
Jeff Sharkey4c5fe522013-09-03 14:17:06 -070035 android:id="@+id/menu_sort"
36 android:title="@string/menu_sort"
Jeff Sharkey06c41872013-09-06 10:43:45 -070037 android:icon="@drawable/ic_menu_sortby"
Jeff Sharkey4c5fe522013-09-03 14:17:06 -070038 android:showAsAction="always">
39 <menu>
40 <item
41 android:id="@+id/menu_sort_name"
42 android:title="@string/sort_name" />
43 <item
44 android:id="@+id/menu_sort_date"
45 android:title="@string/sort_date" />
46 <item
47 android:id="@+id/menu_sort_size"
48 android:title="@string/sort_size" />
49 </menu>
50 </item>
51 <item
Jeff Sharkey2e694f82013-08-06 16:26:14 -070052 android:id="@+id/menu_grid"
53 android:title="@string/menu_grid"
Jeff Sharkey5629ec52013-09-04 18:03:18 -070054 android:icon="@drawable/ic_menu_view_grid"
Steve McKayd4800812016-02-02 11:41:03 -080055 android:showAsAction="always" />
Jeff Sharkey2e694f82013-08-06 16:26:14 -070056 <item
57 android:id="@+id/menu_list"
58 android:title="@string/menu_list"
Jeff Sharkey5629ec52013-09-04 18:03:18 -070059 android:icon="@drawable/ic_menu_view_list"
Steve McKayd4800812016-02-02 11:41:03 -080060 android:showAsAction="always" />
61
Jeff Sharkeyc6cbdf12013-08-07 16:22:02 -070062 <item
Steve McKayf2c8b0d2015-09-23 15:44:24 -070063 android:id="@+id/menu_new_window"
64 android:title="@string/menu_new_window"
65 android:alphabeticShortcut="n"
66 android:showAsAction="never"
67 android:visible="false" />
68 <item
Steve McKaye9809272015-10-01 11:39:24 -070069 android:id="@+id/menu_create_dir"
70 android:title="@string/menu_create_dir"
71 android:icon="@drawable/ic_menu_new_folder"
72 android:alphabeticShortcut="e"
73 android:showAsAction="always"
74 android:visible="false" />
75 <item
Steve McKay1f199482015-05-20 15:58:42 -070076 android:id="@+id/menu_paste_from_clipboard"
77 android:title="@string/menu_paste_from_clipboard"
78 android:alphabeticShortcut="v"
79 android:showAsAction="never"
80 android:visible="false" />
Steve McKayf2c8b0d2015-09-23 15:44:24 -070081 <!-- Copy action is defined in mode_directory.xml -->
Steve McKay1f199482015-05-20 15:58:42 -070082 <item
Steve McKaye9809272015-10-01 11:39:24 -070083 android:id="@+id/menu_file_size"
Ben Kwa0574b182015-09-08 07:31:19 -070084 android:showAsAction="never"
85 android:visible="false" />
Jeff Sharkeye8d13ea2014-08-08 15:10:03 -070086 <item
Steve McKaye9809272015-10-01 11:39:24 -070087 android:id="@+id/menu_advanced"
Ben Kwa0574b182015-09-08 07:31:19 -070088 android:showAsAction="never"
89 android:visible="false" />
Jeff Sharkey938528d2015-04-12 21:52:24 -070090 <item
91 android:id="@+id/menu_settings"
92 android:title="@string/menu_settings"
Steve McKay36787542016-01-29 18:15:39 -080093 android:showAsAction="never"
94 android:visible="false" />
Jeff Sharkey09c10bf2013-06-30 20:02:59 -070095</menu>