1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2012 Google Inc.
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<menu xmlns:android="http://schemas.android.com/apk/res/android">
17    <item android:id="@+id/action_search"
18          android:icon="@android:drawable/ic_menu_search"
19          android:title="@string/action_bar_search"
20          android:showAsAction="always"
21          android:actionViewClass="android.widget.SearchView" />
22    <item android:id="@+id/menu_item_share_action_provider_action_bar"
23          android:showAsAction="always"
24          android:title="@string/action_bar_share_with"
25          android:actionProviderClass="android.widget.ShareActionProvider" />
26    <group android:id="@+id/show_tabs_group"
27            android:checkableBehavior="single">
28        <item android:id="@+id/show_tabs"
29                android:title="Show Tabs"
30                android:showAsAction="never" />
31        <item android:id="@+id/hide_tabs"
32                android:title="Hide Tabs"
33                android:checked="true"
34                android:showAsAction="never" />
35    </group>
36    <group android:id="@+id/stable_layout_group"
37            android:checkableBehavior="all">
38        <item android:id="@+id/stable_layout"
39                android:title="Stable Layout"
40                android:checked="true"
41                android:showAsAction="never" />
42    </group>
43    <item android:id="@+id/action_share"
44          android:icon="@android:drawable/ic_menu_share"
45          android:title="@string/action_bar_share"
46          android:showAsAction="ifRoom" />
47    <item android:id="@+id/action_sort"
48          android:icon="@android:drawable/ic_menu_sort_by_size"
49          android:title="@string/action_bar_sort"
50          android:showAsAction="ifRoom">
51        <menu>
52            <item android:id="@+id/action_sort_size"
53                  android:icon="@android:drawable/ic_menu_sort_by_size"
54                  android:title="@string/action_bar_sort_size"
55                  android:onClick="onSort" />
56            <item android:id="@+id/action_sort_alpha"
57                  android:icon="@android:drawable/ic_menu_sort_alphabetically"
58                  android:title="@string/action_bar_sort_alpha"
59                  android:onClick="onSort" />
60        </menu>
61    </item>
62</menu>
63