From 0730c4fcd008a7b7835240b790c3b11847845018 Mon Sep 17 00:00:00 2001 From: Mindy Pereira Date: Wed, 9 Nov 2011 15:33:10 -0800 Subject: [PATCH] Make account spinner styles match gmail style. Fixes b/5520685 update account switch spinner to match Gmail layout Change-Id: I06c262f16d8629696bb761b005a3728406ccce53 --- res/layout/action_bar_spinner.xml | 81 +++++++++++-------- res/layout/action_bar_spinner_dropdown.xml | 74 +++++++++-------- res/values-sw600dp/styles.xml | 5 -- .../email/activity/ActionBarController.java | 1 - 4 files changed, 86 insertions(+), 75 deletions(-) diff --git a/res/layout/action_bar_spinner.xml b/res/layout/action_bar_spinner.xml index 11c2fa801..35b83198e 100644 --- a/res/layout/action_bar_spinner.xml +++ b/res/layout/action_bar_spinner.xml @@ -13,42 +13,53 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - + android:paddingLeft="0dip" + android:layout_marginLeft="0dip"> + - + android:layout_alignParentRight="true" + android:layout_marginLeft="4dp" + style="@style/unreadCountActionBar" /> + + + + + + + + + + + + + \ No newline at end of file diff --git a/res/layout/action_bar_spinner_dropdown.xml b/res/layout/action_bar_spinner_dropdown.xml index dc588f500..0b350980d 100644 --- a/res/layout/action_bar_spinner_dropdown.xml +++ b/res/layout/action_bar_spinner_dropdown.xml @@ -18,46 +18,52 @@ The list items for the account spinner drop down. Popup width is set at runtime from @dimen/account_spinner_dropdown_width --> - - - + + + android:layout_width="0dip" + android:layout_weight="1"> + android:layout_width="match_parent" + android:ellipsize="end" + style="@android:style/TextAppearance.Holo.Widget.ActionBar.Title"/> + + + + + - - - + + + + + diff --git a/res/values-sw600dp/styles.xml b/res/values-sw600dp/styles.xml index 815749b7b..9f3d165ed 100644 --- a/res/values-sw600dp/styles.xml +++ b/res/values-sw600dp/styles.xml @@ -132,11 +132,6 @@ true - -