blob: 79f6fa99423243aed9a451908442115c9c9876ac [file] [log] [blame]
Jeff Sharkey54e55b72013-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 Wronska97831482016-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 Sharkey54e55b72013-06-30 20:02:59 -070026 <item
Jeff Sharkeybc2971d2013-07-31 20:53:22 -070027 android:id="@+id/menu_search"
28 android:title="@string/menu_search"
Jeff Sharkey6d97d3c2013-09-06 10:43:45 -070029 android:icon="@drawable/ic_menu_search"
Aga Wronska97831482016-01-08 17:29:24 -080030 android:showAsAction="always"
Jeff Sharkeybc2971d2013-07-31 20:53:22 -070031 android:actionViewClass="android.widget.SearchView"
Steve McKay3ce95952016-02-02 11:41:03 -080032 android:imeOptions="actionSearch"
33 android:visible="false" />
Jeff Sharkeyb156f4b2013-08-06 16:26:14 -070034 <item
35 android:id="@+id/menu_grid"
36 android:title="@string/menu_grid"
Jeff Sharkey0b14db32013-09-04 18:03:18 -070037 android:icon="@drawable/ic_menu_view_grid"
Steve McKay3ce95952016-02-02 11:41:03 -080038 android:showAsAction="always" />
Jeff Sharkeyb156f4b2013-08-06 16:26:14 -070039 <item
40 android:id="@+id/menu_list"
41 android:title="@string/menu_list"
Jeff Sharkey0b14db32013-09-04 18:03:18 -070042 android:icon="@drawable/ic_menu_view_list"
Steve McKay3ce95952016-02-02 11:41:03 -080043 android:showAsAction="always" />
44
Jeff Sharkey9fb567b2013-08-07 16:22:02 -070045 <item
Steve McKay9f9d5b42015-09-23 15:44:24 -070046 android:id="@+id/menu_new_window"
47 android:title="@string/menu_new_window"
48 android:alphabeticShortcut="n"
49 android:showAsAction="never"
50 android:visible="false" />
51 <item
Steve McKay5bbae102015-10-01 11:39:24 -070052 android:id="@+id/menu_create_dir"
53 android:title="@string/menu_create_dir"
54 android:icon="@drawable/ic_menu_new_folder"
55 android:alphabeticShortcut="e"
Steve McKayf8737692016-02-04 19:40:45 -080056 android:showAsAction="never"
Steve McKay5bbae102015-10-01 11:39:24 -070057 android:visible="false" />
58 <item
Steve McKaybdbd0ff2015-05-20 15:58:42 -070059 android:id="@+id/menu_paste_from_clipboard"
60 android:title="@string/menu_paste_from_clipboard"
61 android:alphabeticShortcut="v"
62 android:showAsAction="never"
63 android:visible="false" />
Steve McKay9f9d5b42015-09-23 15:44:24 -070064 <!-- Copy action is defined in mode_directory.xml -->
Steve McKaybdbd0ff2015-05-20 15:58:42 -070065 <item
Steve McKayf8737692016-02-04 19:40:45 -080066 android:id="@+id/menu_sort"
67 android:title="@string/menu_sort"
68 android:icon="@drawable/ic_menu_sortby"
69 android:showAsAction="never">
70 <menu>
71 <item
72 android:id="@+id/menu_sort_name"
73 android:title="@string/sort_name" />
74 <item
75 android:id="@+id/menu_sort_date"
76 android:title="@string/sort_date" />
77 <item
78 android:id="@+id/menu_sort_size"
79 android:title="@string/sort_size" />
80 </menu>
81 </item>
82 <item
Steve McKay5bbae102015-10-01 11:39:24 -070083 android:id="@+id/menu_file_size"
Ben Kwa0f7078f02015-09-08 07:31:19 -070084 android:showAsAction="never"
85 android:visible="false" />
Jeff Sharkey669f8e72014-08-08 15:10:03 -070086 <item
Jeff Sharkey1407d4c2015-04-12 21:52:24 -070087 android:id="@+id/menu_settings"
88 android:title="@string/menu_settings"
Steve McKayefa17612016-01-29 18:15:39 -080089 android:showAsAction="never"
90 android:visible="false" />
Jeff Sharkey54e55b72013-06-30 20:02:59 -070091</menu>