1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2011 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 <menu xmlns:android="http://schemas.android.com/apk/res/android"> 17 <item 18 android:id="@+id/menu_search" 19 android:icon="@drawable/ic_ab_search_holo_dark" 20 android:title="@string/menu_search" 21 android:showAsAction="ifRoom" /> 22 23 <item 24 android:id="@+id/menu_add_contact" 25 android:icon="@drawable/ic_add_contact_holo_dark" 26 android:title="@string/menu_new_contact_action_bar" /> 27 28 <item 29 android:id="@+id/menu_add_group" 30 android:icon="@drawable/ic_add_group_holo_dark" 31 android:title="@string/menu_new_group_action_bar" /> 32 33 <!-- Added orderInCategory to keep the following buttons at the end of the menu 34 Buttons will be added in the order added/inflated. Ordered buttons will be added 35 at the end according to the orderInCategory. This setup insures that the buttons below 36 will be the last buttons in the menu regardless of how many buttons are added 37 --> 38 <item 39 android:id="@+id/menu_contacts_filter" 40 android:icon="@drawable/ic_menu_settings_holo_light" 41 android:orderInCategory="1" 42 android:title="@string/menu_contacts_filter" /> 43 44 <item 45 android:id="@+id/menu_import_export" 46 android:icon="@drawable/ic_menu_import_export_holo_light" 47 android:orderInCategory="2" 48 android:title="@string/menu_import_export" /> 49 50 <item 51 android:id="@+id/menu_accounts" 52 android:icon="@drawable/ic_menu_accounts_holo_light" 53 android:orderInCategory="3" 54 android:title="@string/menu_accounts" /> 55 56 <item 57 android:id="@+id/menu_settings" 58 android:icon="@drawable/ic_menu_settings_holo_light" 59 android:orderInCategory="4" 60 android:title="@string/menu_settings" /> 61 </menu> 62