Home | History | Annotate | Download | only in menu
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3      Copyright (C) 2011 Google Inc.
      4      Licensed to The Android Open Source Project.
      5 
      6      Licensed under the Apache License, Version 2.0 (the "License");
      7      you may not use this file except in compliance with the License.
      8      You may obtain a copy of the License at
      9 
     10           http://www.apache.org/licenses/LICENSE-2.0
     11 
     12      Unless required by applicable law or agreed to in writing, software
     13      distributed under the License is distributed on an "AS IS" BASIS,
     14      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15      See the License for the specific language governing permissions and
     16      limitations under the License.
     17 -->
     18 
     19 <menu xmlns:android="http://schemas.android.com/apk/res/android">
     20     <!-- Always available -->
     21     <item android:id="@+id/compose"
     22         android:title="@string/menu_compose"
     23         android:showAsAction="ifRoom"
     24         android:icon="@drawable/ic_menu_compose_normal_holo_light"
     25         android:alphabeticShortcut="@string/trigger_compose_char" />
     26 
     27     <!-- Available only for accounts with SERVER_SEARCH and in a folder
     28       that supports FOLDER_SERVER_SEARCH -->
     29     <item android:id="@+id/search" android:title="@string/menu_search"
     30         android:showAsAction="always|collapseActionView"
     31         android:icon="@drawable/ic_menu_search_holo_light"
     32         android:actionLayout="@layout/mail_actionbar_searchview" />
     33 
     34     <!-- Available only in the trash folder, when the account supports emptying it -->
     35     <item android:id="@+id/empty_trash"
     36         android:title="@string/empty_trash"
     37         android:showAsAction="never"
     38         android:icon="@drawable/ic_menu_trash_holo_light" />
     39 
     40     <!-- Available only in the spam folder, when the account supports emptying it -->
     41     <item android:id="@+id/empty_spam"
     42         android:title="@string/empty_spam"
     43         android:showAsAction="never"
     44         android:icon="@drawable/ic_menu_trash_holo_light" />
     45 
     46     <!-- Always available -->
     47     <item android:id="@+id/refresh"
     48         android:title="@string/refresh"
     49         android:showAsAction="never"
     50         android:icon="@drawable/ic_menu_refresh_holo_light"
     51         android:alphabeticShortcut="@string/trigger_refresh_char" />
     52 
     53     <!-- Available for Folders with SUPPORTS_SETTINGS capability -->
     54     <item android:id="@+id/folder_options"
     55         android:title="@string/menu_folder_options"
     56         android:showAsAction="never" />
     57 
     58     <!-- Always available -->
     59     <item android:id="@+id/settings"
     60         android:title="@string/menu_settings"
     61         android:showAsAction="never" />
     62 
     63     <!-- Always available -->
     64     <item
     65         android:id="@+id/feedback_menu_item"
     66         android:icon="@android:drawable/ic_menu_send"
     67         android:showAsAction="never"
     68         android:title="@string/feedback" />
     69 
     70     <!-- Available if the account specifies a help url -->
     71     <item
     72         android:id="@+id/help_info_menu_item"
     73         android:icon="@android:drawable/ic_menu_help"
     74         android:showAsAction="never"
     75         android:title="@string/help_and_info" />
     76 
     77 </menu>
     78