Home | History | Annotate | Download | only in menu-sw580dp
      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         android:showAsAction="ifRoom" />
     28 
     29     <item
     30         android:id="@+id/menu_add_group"
     31         android:icon="@drawable/ic_add_group_holo_dark"
     32         android:title="@string/menu_new_group_action_bar"
     33         android:showAsAction="ifRoom" />
     34 
     35     <!-- Added orderInCategory to keep the following buttons at the end of the menu
     36          Buttons will be added in the order added/inflated. Ordered buttons will be added
     37          at the end according to the orderInCategory. This setup insures that the buttons below
     38          will be the last buttons in the menu regardless of how many buttons are added
     39     -->
     40     <item
     41         android:id="@+id/menu_contacts_filter"
     42         android:orderInCategory="1"
     43         android:title="@string/menu_contacts_filter" />
     44 
     45     <item
     46         android:id="@+id/menu_import_export"
     47         android:orderInCategory="2"
     48         android:title="@string/menu_import_export" />
     49 
     50     <item
     51         android:id="@+id/menu_clear_frequents"
     52         android:orderInCategory="3"
     53         android:title="@string/menu_clear_frequents" />
     54 
     55     <item
     56         android:id="@+id/menu_accounts"
     57         android:orderInCategory="4"
     58         android:title="@string/menu_accounts" />
     59 
     60     <item
     61         android:id="@+id/menu_settings"
     62         android:orderInCategory="5"
     63         android:title="@string/menu_settings" />
     64 
     65     <item
     66         android:id="@+id/menu_help"
     67         android:orderInCategory="6"
     68         android:title="@string/menu_help" />
     69 
     70     <item
     71         android:id="@+id/export_database"
     72         android:title="@string/menu_export_database"
     73         android:visible="false"
     74         android:showAsAction="never" />
     75 </menu>
     76