From 19bc1921f2e15bebbde2b4172f94e9d226ab2845 Mon Sep 17 00:00:00 2001 From: Andy Huang Date: Wed, 7 Dec 2011 18:28:41 -0800 Subject: [PATCH] Fix various text size problems when system font size is huge * use common styles for spinner anchor and dropdown text (introduced in I3063cfea) * allow dropdown item height to scale beyond fixed height to fit huge text Other fixes: * use Gmail's color for dropdown and folder list header text * remove spurious divider in dropdown items that precede a header Bug: 5687252 Change-Id: Iafd5d1dc7c3809393c3892138b42b7274fb03a27 --- res/layout/action_bar_spinner.xml | 4 ++-- res/layout/action_bar_spinner_dropdown.xml | 7 ++++--- .../action_bar_spinner_dropdown_header.xml | 1 + res/layout/mailbox_list_header.xml | 1 + res/values-land/styles.xml | 17 ----------------- res/values-sw600dp/styles.xml | 12 ------------ res/values/styles.xml | 15 --------------- .../email/activity/AccountSelectorAdapter.java | 5 +++++ 8 files changed, 13 insertions(+), 49 deletions(-) diff --git a/res/layout/action_bar_spinner.xml b/res/layout/action_bar_spinner.xml index 35b83198e..a3b1cf260 100644 --- a/res/layout/action_bar_spinner.xml +++ b/res/layout/action_bar_spinner.xml @@ -43,7 +43,7 @@ android:gravity="center_vertical"> + style="@style/AccountSpinnerDropdownTextPrimary" /> + style="@style/AccountSpinnerDropdownTextSecondary" /> diff --git a/res/layout/mailbox_list_header.xml b/res/layout/mailbox_list_header.xml index 4bef0c5e6..b6bba17be 100644 --- a/res/layout/mailbox_list_header.xml +++ b/res/layout/mailbox_list_header.xml @@ -18,5 +18,6 @@ android:id="@+id/display_name" android:layout_width="match_parent" android:ellipsize="end" + android:textColor="@color/label_list_heading_text_color" style="?android:attr/listSeparatorTextViewStyle" android:layout_marginLeft="@dimen/mailbox_list_padding_left" /> diff --git a/res/values-land/styles.xml b/res/values-land/styles.xml index d4fb81fc7..deb62c96e 100644 --- a/res/values-land/styles.xml +++ b/res/values-land/styles.xml @@ -23,23 +23,6 @@ end - - - - - - - - - - - -