Vikram Aggarwal | 5e5ac74 | 2011-12-19 08:14:16 -0800 | [diff] [blame] | 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 | <!-- Action bar items for the tablet when viewing a conversation --> |
| 19 | |
Andrew Sapperstein | 52882ff | 2014-07-27 12:30:18 -0700 | [diff] [blame] | 20 | <menu xmlns:android="http://schemas.android.com/apk/res/android" |
| 21 | xmlns:app="http://schemas.android.com/apk/res-auto"> |
Andrew Sapperstein | 3047a9f | 2014-07-22 18:17:53 -0700 | [diff] [blame] | 22 | |
Vikram Aggarwal | 5e5ac74 | 2011-12-19 08:14:16 -0800 | [diff] [blame] | 23 | <item |
Vikram Aggarwal | c30fe41 | 2012-05-18 11:58:58 -0700 | [diff] [blame] | 24 | android:id="@+id/archive" |
Vikram Aggarwal | 5e5ac74 | 2011-12-19 08:14:16 -0800 | [diff] [blame] | 25 | android:title="@string/archive" |
Andrew Sapperstein | 52882ff | 2014-07-27 12:30:18 -0700 | [diff] [blame] | 26 | app:showAsAction="always" |
Andrew Sapperstein | 7750adb | 2014-07-18 18:36:13 -0700 | [diff] [blame] | 27 | android:icon="@drawable/ic_archive_wht_24dp" |
Jin Cao | a6b4521 | 2014-09-18 13:46:54 -0700 | [diff] [blame] | 28 | android:alphabeticShortcut="@string/trigger_archive_char" /> |
Andrew Sapperstein | 3047a9f | 2014-07-22 18:17:53 -0700 | [diff] [blame] | 29 | |
Vikram Aggarwal | ef37399 | 2013-03-26 10:55:31 -0700 | [diff] [blame] | 30 | <item |
| 31 | android:id="@+id/remove_folder" |
| 32 | android:title="@string/remove_folder" |
Andrew Sapperstein | 52882ff | 2014-07-27 12:30:18 -0700 | [diff] [blame] | 33 | app:showAsAction="always" |
Andrew Sapperstein | d90a3bb | 2014-08-02 12:34:10 -0700 | [diff] [blame] | 34 | android:icon="@drawable/ic_remove_label_wht_24dp" |
Jin Cao | a6b4521 | 2014-09-18 13:46:54 -0700 | [diff] [blame] | 35 | android:visible="false" |
| 36 | android:alphabeticShortcut="@string/trigger_archive_char" /> |
Vikram Aggarwal | ef37399 | 2013-03-26 10:55:31 -0700 | [diff] [blame] | 37 | |
Paul Westbrook | ef36254 | 2012-08-27 14:53:32 -0700 | [diff] [blame] | 38 | <!-- Depends on FolderCapabilities.DELETE --> |
Vikram Aggarwal | 5e5ac74 | 2011-12-19 08:14:16 -0800 | [diff] [blame] | 39 | <item |
| 40 | android:id="@+id/delete" |
| 41 | android:title="@string/delete" |
Andrew Sapperstein | 52882ff | 2014-07-27 12:30:18 -0700 | [diff] [blame] | 42 | app:showAsAction="always" |
Jin Cao | a6b4521 | 2014-09-18 13:46:54 -0700 | [diff] [blame] | 43 | android:icon="@drawable/ic_delete_wht_24dp" |
| 44 | android:alphabeticShortcut="@string/trigger_delete_char" /> |
Andrew Sapperstein | 52882ff | 2014-07-27 12:30:18 -0700 | [diff] [blame] | 45 | |
Paul Westbrook | ef36254 | 2012-08-27 14:53:32 -0700 | [diff] [blame] | 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" |
Andrew Sapperstein | 52882ff | 2014-07-27 12:30:18 -0700 | [diff] [blame] | 50 | app:showAsAction="always" |
Andrew Sapperstein | 7750adb | 2014-07-18 18:36:13 -0700 | [diff] [blame] | 51 | android:icon="@drawable/ic_delete_wht_24dp" |
Jin Cao | a6b4521 | 2014-09-18 13:46:54 -0700 | [diff] [blame] | 52 | android:visible="false" |
| 53 | android:alphabeticShortcut="@string/trigger_delete_char" /> |
Jin Cao | 512821c | 2014-05-30 15:54:04 -0700 | [diff] [blame] | 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" |
Andrew Sapperstein | 52882ff | 2014-07-27 12:30:18 -0700 | [diff] [blame] | 58 | app:showAsAction="always" |
Jin Cao | 512821c | 2014-05-30 15:54:04 -0700 | [diff] [blame] | 59 | android:icon="@drawable/ic_delete_wht_24dp" |
Jin Cao | a6b4521 | 2014-09-18 13:46:54 -0700 | [diff] [blame] | 60 | android:visible="false" |
| 61 | android:alphabeticShortcut="@string/trigger_delete_char" /> |
Vikram Aggarwal | ef37399 | 2013-03-26 10:55:31 -0700 | [diff] [blame] | 62 | |
| 63 | <!-- Always available --> |
| 64 | <item |
| 65 | android:id="@+id/inside_conversation_unread" |
| 66 | android:title="@string/mark_unread" |
Andrew Sapperstein | 52882ff | 2014-07-27 12:30:18 -0700 | [diff] [blame] | 67 | app:showAsAction="always" |
Rohan Shah | 1c4cc9b | 2014-08-11 11:53:38 -0700 | [diff] [blame] | 68 | android:icon="@drawable/ic_menu_mark_unread_wht_24dp" /> |
Vikram Aggarwal | ef37399 | 2013-03-26 10:55:31 -0700 | [diff] [blame] | 69 | |
Vikram Aggarwal | bd6c1d3 | 2012-02-21 10:14:32 -0800 | [diff] [blame] | 70 | <!-- Always available --> |
Vikram Aggarwal | 5e5ac74 | 2011-12-19 08:14:16 -0800 | [diff] [blame] | 71 | <item |
Rohan Shah | aab9bc7 | 2013-02-07 14:18:05 -0800 | [diff] [blame] | 72 | android:id="@+id/move_to" |
Scott Kennedy | a85831d | 2013-04-12 15:54:22 -0700 | [diff] [blame] | 73 | android:title="@string/menu_move_to" |
Rohan Shah | efc8bf3 | 2014-08-27 15:27:13 -0700 | [diff] [blame] | 74 | app:showAsAction="@string/menu_move_to_state" |
Rohan Shah | 0c4c19b | 2014-08-27 16:15:23 -0700 | [diff] [blame] | 75 | android:icon="@drawable/ic_move_to_wht_24dp" /> |
Rohan Shah | aab9bc7 | 2013-02-07 14:18:05 -0800 | [diff] [blame] | 76 | |
| 77 | <!-- Always available --> |
| 78 | <item |
Andrew Sapperstein | 6c570db | 2013-08-06 17:21:36 -0700 | [diff] [blame] | 79 | android:id="@+id/change_folders" |
Scott Kennedy | 101fec5 | 2013-04-24 17:28:21 -0700 | [diff] [blame] | 80 | android:title="@string/menu_change_folders" |
Andrew Sapperstein | 52882ff | 2014-07-27 12:30:18 -0700 | [diff] [blame] | 81 | app:showAsAction="never" |
Jin Cao | a6b4521 | 2014-09-18 13:46:54 -0700 | [diff] [blame] | 82 | android:icon="@drawable/ic_change_labels_wht_24dp" |
| 83 | android:alphabeticShortcut="@string/trigger_change_label_char" /> |
Scott Kennedy | 101fec5 | 2013-04-24 17:28:21 -0700 | [diff] [blame] | 84 | |
Scott Kennedy | dd2ec68 | 2013-06-03 19:16:13 -0700 | [diff] [blame] | 85 | <item |
| 86 | android:id="@+id/move_to_inbox" |
Andrew Sapperstein | 52882ff | 2014-07-27 12:30:18 -0700 | [diff] [blame] | 87 | app:showAsAction="never" |
Andrew Sapperstein | d90a3bb | 2014-08-02 12:34:10 -0700 | [diff] [blame] | 88 | android:title="@string/menu_move_to_inbox" |
| 89 | android:icon="@drawable/ic_move_to_inbox_wht_24dp"/> |
Scott Kennedy | dd2ec68 | 2013-06-03 19:16:13 -0700 | [diff] [blame] | 90 | |
Scott Kennedy | 101fec5 | 2013-04-24 17:28:21 -0700 | [diff] [blame] | 91 | <!-- Always available --> |
| 92 | <item |
Vikram Aggarwal | 5e5ac74 | 2011-12-19 08:14:16 -0800 | [diff] [blame] | 93 | android:id="@+id/mark_important" |
Scott Kennedy | b905d08 | 2013-05-07 16:44:34 -0700 | [diff] [blame] | 94 | android:title="@string/mark_important" /> |
Vikram Aggarwal | 5e5ac74 | 2011-12-19 08:14:16 -0800 | [diff] [blame] | 95 | |
Vikram Aggarwal | bd6c1d3 | 2012-02-21 10:14:32 -0800 | [diff] [blame] | 96 | <!-- Always available --> |
Vikram Aggarwal | 5e5ac74 | 2011-12-19 08:14:16 -0800 | [diff] [blame] | 97 | <item |
| 98 | android:id="@+id/mark_not_important" |
| 99 | android:title="@string/mark_not_important" |
Vikram Aggarwal | 5e5ac74 | 2011-12-19 08:14:16 -0800 | [diff] [blame] | 100 | android:visible="false" /> |
| 101 | |
Vikram Aggarwal | bd6c1d3 | 2012-02-21 10:14:32 -0800 | [diff] [blame] | 102 | <!-- Depends on AccountCapabilities.MUTE --> |
Vikram Aggarwal | 5e5ac74 | 2011-12-19 08:14:16 -0800 | [diff] [blame] | 103 | <item |
| 104 | android:id="@+id/mute" |
| 105 | android:title="@string/mute" /> |
Andrew Sapperstein | 6293ef0 | 2013-10-07 18:22:10 -0700 | [diff] [blame] | 106 | |
| 107 | <item android:id="@+id/print_all" |
Jin Cao | a6b4521 | 2014-09-18 13:46:54 -0700 | [diff] [blame] | 108 | android:title="@string/print_all" |
| 109 | android:visible="false" |
| 110 | android:alphabeticShortcut="@string/trigger_print_char" /> |
Andrew Sapperstein | 6293ef0 | 2013-10-07 18:22:10 -0700 | [diff] [blame] | 111 | |
Andrew Sapperstein | 2fc6730 | 2013-04-29 18:24:56 -0700 | [diff] [blame] | 112 | <item |
| 113 | android:id="@+id/show_original" |
| 114 | android:title="@string/menu_show_original"/> |
Vikram Aggarwal | bd6c1d3 | 2012-02-21 10:14:32 -0800 | [diff] [blame] | 115 | <!-- Depends on AccountCapabilities.REPORT_SPAM --> |
Vikram Aggarwal | 5e5ac74 | 2011-12-19 08:14:16 -0800 | [diff] [blame] | 116 | <item |
| 117 | android:id="@+id/report_spam" |
Scott Kennedy | b905d08 | 2013-05-07 16:44:34 -0700 | [diff] [blame] | 118 | android:title="@string/report_spam" /> |
Paul Westbrook | 77eee62 | 2012-07-10 13:41:57 -0700 | [diff] [blame] | 119 | <!-- Depends on AccountCapabilities.REPORT_SPAM --> |
| 120 | <item |
| 121 | android:id="@+id/mark_not_spam" |
| 122 | android:title="@string/mark_not_spam" |
Paul Westbrook | 77eee62 | 2012-07-10 13:41:57 -0700 | [diff] [blame] | 123 | android:visible="false" /> |
Vikram Aggarwal | 5e5ac74 | 2011-12-19 08:14:16 -0800 | [diff] [blame] | 124 | |
Paul Westbrook | 76b2062 | 2012-07-12 11:45:43 -0700 | [diff] [blame] | 125 | <!-- Depends on AccountCapabilities.REPORT_PHISHING --> |
| 126 | <item |
| 127 | android:id="@+id/report_phishing" |
| 128 | android:title="@string/report_phishing" |
| 129 | android:visible="false" /> |
| 130 | |
Jin Cao | a6b4521 | 2014-09-18 13:46:54 -0700 | [diff] [blame] | 131 | <!-- These invisible menu items are used to enable keyboard shortcuts --> |
| 132 | <item |
| 133 | android:id="@+id/compose" |
| 134 | android:title="@string/menu_compose" |
| 135 | android:visible="false" |
| 136 | android:alphabeticShortcut="@string/trigger_compose_char" /> |
| 137 | |
| 138 | <item |
| 139 | android:id="@+id/reply" |
| 140 | android:title="@string/reply" |
| 141 | android:visible="false" |
| 142 | android:alphabeticShortcut="@string/trigger_reply_char" /> |
| 143 | |
| 144 | <item |
| 145 | android:id="@+id/reply_all" |
| 146 | android:title="@string/reply_all" |
| 147 | android:visible="false" |
| 148 | android:alphabeticShortcut="@string/trigger_reply_all_char" /> |
| 149 | |
| 150 | <item |
| 151 | android:id="@+id/toggle_read_unread" |
| 152 | android:title="@string/toggle_read_unread" |
| 153 | android:visible="false" |
| 154 | android:alphabeticShortcut="@string/trigger_toggle_read_unread_char" /> |
| 155 | |
| 156 | <item |
| 157 | android:id="@+id/toggle_drawer" |
| 158 | android:title="@string/menu_toggle_drawer" |
| 159 | android:visible="false" |
| 160 | android:alphabeticShortcut="@string/trigger_toggle_drawer_char" /> |
| 161 | |
| 162 | <item |
| 163 | android:id="@+id/settings" |
| 164 | android:title="@string/menu_settings" |
| 165 | android:visible="false" |
| 166 | android:alphabeticShortcut="@string/trigger_settings_char" /> |
| 167 | |
| 168 | <item |
| 169 | android:id="@+id/help_info_menu_item" |
| 170 | android:title="@string/help_and_feedback" |
| 171 | android:visible="false" |
| 172 | android:alphabeticShortcut="@string/trigger_help_char" /> |
| 173 | |
Vikram Aggarwal | 5e5ac74 | 2011-12-19 08:14:16 -0800 | [diff] [blame] | 174 | </menu> |