From ed494cd6bb071efd1bf290b98c977debc7d15022 Mon Sep 17 00:00:00 2001 From: Ben Komalo Date: Mon, 8 Aug 2011 16:58:48 -0700 Subject: [PATCH] Fix search styling. This eliminates the excessive padding on the left and makes the hint text behave according to the new spec (since it uses the new action view expanded mode). A later CL will actually change the item to use the action view facilities of the framework (so we don't have to manage our own custom views). Bug: 5109953 Change-Id: Ia3e4a1e64e65b3b8bb3e708b31636f4186acfd46 --- res/layout/action_bar_custom_view.xml | 3 +-- res/layout/action_bar_search.xml | 19 +++++++------------ res/layout/action_bar_spinner.xml | 3 ++- res/values-sw600dp/styles.xml | 7 +------ res/values/styles.xml | 7 +------ .../email/activity/ActionBarController.java | 10 +++------- 6 files changed, 15 insertions(+), 34 deletions(-) diff --git a/res/layout/action_bar_custom_view.xml b/res/layout/action_bar_custom_view.xml index c97adb8db..423b546bd 100644 --- a/res/layout/action_bar_custom_view.xml +++ b/res/layout/action_bar_custom_view.xml @@ -22,8 +22,7 @@ - - - + android:id="@+id/search_view" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center_vertical" + android:iconifiedByDefault="true" + /> diff --git a/res/layout/action_bar_spinner.xml b/res/layout/action_bar_spinner.xml index cf13a48be..d2ffa43bb 100644 --- a/res/layout/action_bar_spinner.xml +++ b/res/layout/action_bar_spinner.xml @@ -16,7 +16,8 @@ true - - - - @@ -169,11 +169,6 @@ end - -