Xml文件  |  80行  |  2.91 KB

<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2011 Google Inc.
     Licensed to The Android Open Source Project.

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<menu xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto">

    <!-- Available only in the trash folder, when the account supports emptying it -->
    <item
        android:id="@+id/empty_trash"
        android:title="@string/empty_trash"
        app:showAsAction="never"
        android:alphabeticShortcut="@string/trigger_delete_char" />

    <!-- Available only in the spam folder, when the account supports emptying it -->
    <item
        android:id="@+id/empty_spam"
        android:title="@string/empty_spam"
        app:showAsAction="never"
        android:alphabeticShortcut="@string/trigger_delete_char" />

    <!-- Available only for accounts with SERVER_SEARCH and in a folder
      that supports FOLDER_SERVER_SEARCH -->
    <item android:id="@+id/search"
        android:title="@string/menu_search"
        app:showAsAction="ifRoom|collapseActionView"
        android:icon="@drawable/ic_menu_search" />

    <!-- These invisible menu item are used to enable keyboard shortcuts -->
    <item
        android:id="@+id/compose"
        android:title="@string/menu_compose"
        android:visible="false"
        android:alphabeticShortcut="@string/trigger_compose_char" />

    <item
        android:id="@+id/refresh"
        android:title="@string/refresh"
        android:visible="false"
        android:alphabeticShortcut="@string/trigger_refresh_char" />

    <item
        android:id="@+id/toggle_read_unread"
        android:title="@string/toggle_read_unread"
        android:visible="false"
        android:alphabeticShortcut="@string/trigger_toggle_read_unread_char" />

    <item
        android:id="@+id/toggle_drawer"
        android:title="@string/menu_toggle_drawer"
        android:visible="false"
        android:alphabeticShortcut="@string/trigger_toggle_drawer_char" />

    <item
        android:id="@+id/settings"
        android:title="@string/menu_settings"
        android:visible="false"
        android:alphabeticShortcut="@string/trigger_settings_char" />

    <item
        android:id="@+id/help_info_menu_item"
        android:title="@string/help_and_feedback"
        android:visible="false"
        android:alphabeticShortcut="@string/trigger_help_char" />
</menu>