Update compose view action icons

Don't use split action bar in phone compose view (we lose too much
vertical real estate) and just tuck a lot of the menus under the menu
item.

Bug: 5011815
Change-Id: I04b009556a5984fa4b60f54f2d094c3b7c8a5c78
This commit is contained in:
Ben Komalo 2011-07-11 10:23:22 -07:00
parent 396a425d79
commit 1aa5e18902
3 changed files with 49 additions and 2 deletions

View File

@ -217,6 +217,7 @@
android:name=".activity.MessageCompose"
android:label="@string/compose_title"
android:enabled="false"
android:theme="@android:style/Theme.Holo.Light"
>
<intent-filter>
<action

View File

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 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">
<item
android:id="@+id/send"
android:orderInCategory="1000"
android:title="@string/send_action"
android:showAsAction="ifRoom|withText"
android:icon="@drawable/ic_menu_send_holo_light"
android:alphabeticShortcut="s"
/>
<item
android:id="@+id/save"
android:orderInCategory="1100"
android:title="@string/save_draft_action"
android:showAsAction="ifRoom"
android:alphabeticShortcut="d"
/>
<item
android:id="@+id/discard"
android:orderInCategory="1200"
android:title="@string/discard_action"
android:showAsAction="ifRoom"
android:icon="@drawable/ic_menu_trash_holo_light"
android:alphabeticShortcut="q"
/>
<item
android:id="@+id/show_quick_text_list_dialog"
android:orderInCategory="1300"
android:title="@string/show_quick_text_list_dialog_action"
android:alphabeticShortcut="r"
/>
</menu>

View File

@ -27,14 +27,12 @@
android:id="@+id/save"
android:orderInCategory="1100"
android:title="@string/save_draft_action"
android:showAsAction="ifRoom"
android:alphabeticShortcut="d"
/>
<item
android:id="@+id/discard"
android:orderInCategory="1200"
android:title="@string/discard_action"
android:showAsAction="ifRoom"
android:icon="@drawable/ic_menu_trash_holo_light"
android:alphabeticShortcut="q"
/>