summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2012-10-01 17:49:30 -0700
committerBobby Georgescu <georgescu@google.com>2012-10-01 18:15:52 -0700
commit011fb7605e7ad2b3fd036367bd7ad7acb246831f (patch)
tree16abda460c46406fb0e09775debb19dedf3419b8
parent05b294512f3242cbd8b292029a56178fd6bae139 (diff)
downloadandroid_packages_apps_Snap-011fb7605e7ad2b3fd036367bd7ad7acb246831f.tar.gz
android_packages_apps_Snap-011fb7605e7ad2b3fd036367bd7ad7acb246831f.tar.bz2
android_packages_apps_Snap-011fb7605e7ad2b3fd036367bd7ad7acb246831f.zip
Improve display of ActionBar album mode switcher
Bug: 7265942 Bug: 7266862 - Ellipsize the title of the album when appropriate - Show correctly title when swiping from camera to gallery - Hide the delete icon in the overflow menu to match the latest UX mocks, making more room for title Change-Id: Ief77f65c972e75086c5dbf4229c9462cbcc17940
-rw-r--r--res/layout/action_bar_text.xml1
-rw-r--r--res/menu/photo.xml2
2 files changed, 2 insertions, 1 deletions
diff --git a/res/layout/action_bar_text.xml b/res/layout/action_bar_text.xml
index bded20102..bff5f1f96 100644
--- a/res/layout/action_bar_text.xml
+++ b/res/layout/action_bar_text.xml
@@ -23,5 +23,6 @@
android:gravity="center_vertical"
android:paddingLeft="18dp"
android:paddingRight="18dp"
+ android:singleLine="true"
android:minHeight="?attr/listPreferredItemHeightSmall"
/>
diff --git a/res/menu/photo.xml b/res/menu/photo.xml
index 942de3fc0..df3e4e81c 100644
--- a/res/menu/photo.xml
+++ b/res/menu/photo.xml
@@ -38,7 +38,7 @@
android:icon="@drawable/ic_menu_trash_holo_light"
android:title="@string/delete"
android:visible="false"
- android:showAsAction="ifRoom" />
+ android:showAsAction="never" />
<item android:id="@+id/action_slideshow"
android:icon="@drawable/ic_menu_slideshow_holo_light"
android:title="@string/slideshow"