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/search_on_action_bar" 19 android:title="@string/menu_search" 20 android:icon="@drawable/ic_dial_action_search" 21 android:showAsAction="ifRoom" /> 22 23 <!-- This should come after the other menus in CallLog and Dialpad --> 24 <item 25 android:id="@+id/menu_call_settings" 26 android:title="@string/call_settings" 27 android:showAsAction="withText" 28 android:orderInCategory="2" /> 29 30 <item 31 android:id="@+id/filter_option" 32 android:title="@string/menu_contacts_filter" 33 android:showAsAction="withText" /> 34 35 <item 36 android:id="@+id/add_contact" 37 android:icon="@drawable/ic_add_contact_holo_dark" 38 android:title="@string/menu_newContact" 39 android:showAsAction="ifRoom" /> 40 41 <!-- Ugly hack: empty item never clickable. 42 This is for forcing search icon on left even when there's a single item 43 in the bottom ActionBar. 44 We intentionally don't use android:icon to avoid other issues around item with 45 a null icon. 46 47 TODO: look for better idea. --> 48 <item 49 android:id="@+id/empty_right_menu_item" 50 android:actionLayout="@layout/empty2" 51 android:showAsAction="ifRoom" /> 52 </menu> 53