1ddc2ca4a7
- Use PreferenceActivity, in the old style, meaning without PreferenceFragment. - If setting Inbox, change the account settings instead of mailbox settings. - Use the DialogWhenLarge theme, meaning it's a full-screen avitity on the phone and a dialog on the tablet. - Also fixed the bug that we the menu items that are made invisible by UIControllerBase may be made re-visible by the 1-pane controller. TODO The menu item shouldn't be shown for non-syncable mailboxes. Change-Id: I02b2faf6f593e1e2eb370217c27801aa58ca7e6c
67 lines
2.3 KiB
XML
67 lines
2.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2010 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.
|
|
-->
|
|
|
|
<!-- Email activity menu options for the tablet -->
|
|
|
|
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<item
|
|
android:id="@+id/search"
|
|
android:orderInCategory="100"
|
|
android:alphabeticShortcut="s"
|
|
android:title="@string/search_action"
|
|
android:icon="@drawable/ic_menu_search_holo_light"
|
|
android:showAsAction="ifRoom"
|
|
/>
|
|
<item
|
|
android:id="@+id/compose"
|
|
android:orderInCategory="200"
|
|
android:alphabeticShortcut="c"
|
|
android:title="@string/compose_action"
|
|
android:icon="@drawable/ic_menu_compose_holo_light"
|
|
android:showAsAction="ifRoom"
|
|
/>
|
|
<item
|
|
android:id="@+id/refresh"
|
|
android:orderInCategory="300"
|
|
android:alphabeticShortcut="r"
|
|
android:title="@string/refresh_action"
|
|
android:icon="@drawable/ic_menu_refresh_holo_light"
|
|
android:showAsAction="ifRoom"
|
|
/>
|
|
<!-- Newer/older are not menu items on tablet, but we have them here to keep compatibility
|
|
with the phone menu. -->
|
|
<item
|
|
android:id="@+id/newer"
|
|
android:visible="false"
|
|
/>
|
|
<item
|
|
android:id="@+id/older"
|
|
android:visible="false"
|
|
/>
|
|
<item
|
|
android:id="@+id/account_settings"
|
|
android:orderInCategory="2000"
|
|
android:title="@string/account_settings_action"
|
|
android:icon="@android:drawable/ic_menu_preferences"
|
|
/>
|
|
<item
|
|
android:id="@+id/mailbox_settings"
|
|
android:orderInCategory="3000"
|
|
android:title="@string/mailbox_settings_action"
|
|
android:icon="@android:drawable/ic_menu_preferences"
|
|
/>
|
|
</menu>
|