Home | History | Annotate | Download | only in menu-sw600dp-land
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3      Copyright (C) 2012 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 <!-- Action bar items for the tablet when viewing a conversation in landscape mode. -->
     19 <!-- Key differences: search menu item, keyboard shortcuts for compose/refresh. -->
     20 <menu xmlns:android="http://schemas.android.com/apk/res/android"
     21       xmlns:app="http://schemas.android.com/apk/res-auto">
     22 
     23     <item
     24         android:id="@+id/archive"
     25         android:title="@string/archive"
     26         app:showAsAction="always"
     27         android:icon="@drawable/ic_archive_wht_24dp"
     28         android:alphabeticShortcut="@string/trigger_archive_char" />
     29 
     30     <item
     31         android:id="@+id/remove_folder"
     32         android:title="@string/remove_folder"
     33         app:showAsAction="always"
     34         android:icon="@drawable/ic_remove_label_wht_24dp"
     35         android:visible="false"
     36         android:alphabeticShortcut="@string/trigger_archive_char" />
     37 
     38     <!-- Depends on FolderCapabilities.DELETE -->
     39     <item
     40         android:id="@+id/delete"
     41         android:title="@string/delete"
     42         app:showAsAction="always"
     43         android:icon="@drawable/ic_delete_wht_24dp"
     44         android:alphabeticShortcut="@string/trigger_delete_char" />
     45 
     46     <!-- Depends on the user viewing a draft label, and the above menu item not being shown -->
     47     <item
     48         android:id="@+id/discard_drafts"
     49         android:title="@string/discard_drafts"
     50         app:showAsAction="always"
     51         android:icon="@drawable/ic_delete_wht_24dp"
     52         android:visible="false"
     53         android:alphabeticShortcut="@string/trigger_delete_char" />
     54     <!-- Depends on the user viewing a outbox label and the setting supports delete -->
     55     <item
     56         android:id="@+id/discard_outbox"
     57         android:title="@string/discard_failed"
     58         app:showAsAction="always"
     59         android:icon="@drawable/ic_delete_wht_24dp"
     60         android:visible="false"
     61         android:alphabeticShortcut="@string/trigger_delete_char" />
     62 
     63     <!-- Only one of mark-read or mark-unread is shown. -->
     64     <!-- (mark read is only for landscape 2-pane's peek mode) -->
     65     <item
     66         android:id="@+id/inside_conversation_unread"
     67         android:title="@string/mark_unread"
     68         app:showAsAction="always"
     69         android:icon="@drawable/ic_mark_unread_wht_24dp" />
     70 
     71     <item
     72         android:id="@+id/read"
     73         android:title="@string/mark_read"
     74         app:showAsAction="always"
     75         android:icon="@drawable/ic_mark_read_wht_24dp" />
     76 
     77     <item
     78         android:id="@+id/move_to"
     79         android:title="@string/menu_move_to"
     80         app:showAsAction="always"
     81         android:icon="@drawable/ic_move_to_wht_24dp" />
     82 
     83     <!-- Always available -->
     84     <item
     85         android:id="@+id/change_folders"
     86         android:title="@string/menu_change_folders"
     87         app:showAsAction="never"
     88         android:icon="@drawable/ic_change_labels_wht_24dp"
     89         android:alphabeticShortcut="@string/trigger_change_label_char" />
     90 
     91     <item
     92         android:id="@+id/move_to_inbox"
     93         app:showAsAction="never"
     94         android:title="@string/menu_move_to_inbox"
     95         android:icon="@drawable/ic_move_to_inbox_wht_24dp" />
     96 
     97     <item
     98         android:id="@+id/mark_important"
     99         app:showAsAction="never"
    100         android:title="@string/mark_important" />
    101 
    102     <item
    103         android:id="@+id/mark_not_important"
    104         android:title="@string/mark_not_important"
    105         app:showAsAction="never" />
    106 
    107     <item
    108         android:id="@+id/mute"
    109         android:title="@string/mute"
    110         app:showAsAction="never" />
    111 
    112     <item android:id="@+id/print_all"
    113         android:title="@string/print_all"
    114         android:visible="false"
    115         android:alphabeticShortcut="@string/trigger_print_char" />
    116 
    117     <item
    118         android:id="@+id/show_original"
    119         android:title="@string/menu_show_original"
    120         app:showAsAction="never"/>
    121 
    122     <item
    123         android:id="@+id/report_spam"
    124         android:title="@string/report_spam"
    125         app:showAsAction="never"/>
    126 
    127     <!-- Depends on AccountCapabilities.REPORT_SPAM -->
    128     <item
    129         android:id="@+id/mark_not_spam"
    130         android:title="@string/mark_not_spam"
    131         app:showAsAction="never"
    132         android:visible="false" />
    133 
    134     <!-- Depends on AccountCapabilities.REPORT_PHISHING -->
    135     <item
    136         android:id="@+id/report_phishing"
    137         android:title="@string/report_phishing"
    138         app:showAsAction="never"
    139         android:visible="false" />
    140 
    141     <!-- These invisible menu items are used to enable keyboard shortcuts -->
    142     <item
    143         android:id="@+id/compose"
    144         android:title="@string/menu_compose"
    145         android:visible="false"
    146         android:alphabeticShortcut="@string/trigger_compose_char" />
    147 
    148     <item android:id="@+id/refresh"
    149         android:title="@string/refresh"
    150         android:visible="false"
    151         android:alphabeticShortcut="@string/trigger_refresh_char" />
    152 
    153     <item
    154         android:id="@+id/reply"
    155         android:title="@string/reply"
    156         android:visible="false"
    157         android:alphabeticShortcut="@string/trigger_reply_char" />
    158 
    159     <item
    160         android:id="@+id/reply_all"
    161         android:title="@string/reply_all"
    162         android:visible="false"
    163         android:alphabeticShortcut="@string/trigger_reply_all_char" />
    164 
    165     <item
    166         android:id="@+id/toggle_read_unread"
    167         android:title="@string/toggle_read_unread"
    168         android:visible="false"
    169         android:alphabeticShortcut="@string/trigger_toggle_read_unread_char" />
    170 
    171     <item
    172         android:id="@+id/toggle_drawer"
    173         android:title="@string/menu_toggle_drawer"
    174         android:visible="false"
    175         android:alphabeticShortcut="@string/trigger_toggle_drawer_char" />
    176 
    177     <item
    178         android:id="@+id/settings"
    179         android:title="@string/menu_settings"
    180         android:visible="false"
    181         android:alphabeticShortcut="@string/trigger_settings_char" />
    182 
    183     <item
    184         android:id="@+id/help_info_menu_item"
    185         android:title="@string/help_and_feedback"
    186         android:visible="false"
    187         android:alphabeticShortcut="@string/trigger_help_char" />
    188 
    189 </menu>
    190