From 31405d0023c59787a094b31d72291761fcf8ac9b Mon Sep 17 00:00:00 2001 From: Fan Zhang Date: Mon, 13 Jun 2016 13:50:13 -0700 Subject: [PATCH] Support tab UI polish. Bug: 29107343 Bug: 29101595 1) Changing the font weight of the tabs to Medium 2) Changing the tab indicator color 3) Increasing the padding on the top and bottom of the entire suggestion space (from 6dp to 8dp) 4) Balancing the space of list components within their perspective list heights 5) Adjusting the padding on the right side to improve alignment 6) Changing "Suggestions" and suggestions counter font weight and size 7) Removing the drop shadow on the bottom of the suggestion space 8) "More help" subheader has been removed 9) Use 54% #000000 as tint color for more help icons. Change-Id: If3e1c5ce2701422fba6185e7fa340abccc9bd30c --- res/drawable/ic_forum_24dp.xml | 2 +- res/drawable/ic_help_24dp.xml | 2 +- res/drawable/ic_lightbulb_outline_24.xml | 2 +- res/layout/dashboard_category.xml | 3 +-- res/layout/dashboard_spacer.xml | 2 +- res/layout/dashboard_tile.xml | 3 +-- res/layout/sliding_tab_indicator_view.xml | 2 +- res/layout/sliding_tab_title_view.xml | 1 + res/layout/suggestion_header.xml | 9 ++++--- res/layout/suggestion_tile.xml | 20 ++++---------- res/layout/support_item_subtitle.xml | 27 ------------------- res/values/strings.xml | 3 --- res/values/styles.xml | 6 +++++ .../dashboard/SupportItemAdapter.java | 4 --- 14 files changed, 24 insertions(+), 62 deletions(-) delete mode 100644 res/layout/support_item_subtitle.xml diff --git a/res/drawable/ic_forum_24dp.xml b/res/drawable/ic_forum_24dp.xml index 34c086952e1..562c146452e 100644 --- a/res/drawable/ic_forum_24dp.xml +++ b/res/drawable/ic_forum_24dp.xml @@ -21,7 +21,7 @@ android:height="24dp" android:viewportWidth="24.0" android:viewportHeight="24.0" - android:tint="?android:attr/colorAccent"> + android:tint="?android:attr/colorControlNormal"> + android:tint="?android:attr/colorControlNormal"> + android:tint="?android:attr/colorControlNormal"> + android:importantForAccessibility="noHideDescendants"> diff --git a/res/layout/dashboard_tile.xml b/res/layout/dashboard_tile.xml index a588ed4bbab..7a0cfbbc9da 100644 --- a/res/layout/dashboard_tile.xml +++ b/res/layout/dashboard_tile.xml @@ -23,8 +23,7 @@ android:minHeight="@dimen/dashboard_tile_minimum_height" android:clickable="true" android:focusable="true" - android:background="@drawable/selectable_card" - android:elevation="@dimen/dashboard_category_elevation" > + android:background="@drawable/selectable_card"> + android:background="@color/accent_color_lighter"/> diff --git a/res/layout/sliding_tab_title_view.xml b/res/layout/sliding_tab_title_view.xml index 1a4328fd048..5df8378b7dc 100644 --- a/res/layout/sliding_tab_title_view.xml +++ b/res/layout/sliding_tab_title_view.xml @@ -22,6 +22,7 @@ android:layout_height="wrap_content" android:background="?android:attr/selectableItemBackground" android:ellipsize="end" + android:fontFamily="sans-serif-medium" android:gravity="center" android:maxLines="1" android:padding="@dimen/pager_tabs_title_padding" diff --git a/res/layout/suggestion_header.xml b/res/layout/suggestion_header.xml index b30df60a87f..69ebedc65ca 100644 --- a/res/layout/suggestion_header.xml +++ b/res/layout/suggestion_header.xml @@ -22,7 +22,8 @@ android:clickable="true" android:focusable="true" android:background="@drawable/selectable_card_grey" - android:gravity="center_vertical" > + android:gravity="center_vertical" + android:paddingTop="4dp"> @@ -45,7 +46,7 @@ android:layout_height="wrap_content" android:layout_weight="1" android:gravity="end" - android:paddingEnd="16dp" - android:textAppearance="@style/TextAppearance.TileTitle" + android:paddingEnd="20dp" + android:textAppearance="@style/TextAppearance.SuggestionTitle" android:textColor="?android:attr/colorAccent"/> diff --git a/res/layout/suggestion_tile.xml b/res/layout/suggestion_tile.xml index 9ffd4556e44..80de8ff4937 100644 --- a/res/layout/suggestion_tile.xml +++ b/res/layout/suggestion_tile.xml @@ -55,21 +55,11 @@ - - - - - + android:layout_height="wrap_content" + android:padding="16dp"/> \ No newline at end of file diff --git a/res/layout/support_item_subtitle.xml b/res/layout/support_item_subtitle.xml deleted file mode 100644 index d4a528a8706..00000000000 --- a/res/layout/support_item_subtitle.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - \ No newline at end of file diff --git a/res/values/strings.xml b/res/values/strings.xml index a5142e6a075..52b54f31a76 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -7515,9 +7515,6 @@ To reach support, first connect to Wi-Fi or data. - - More help - Support call diff --git a/res/values/styles.xml b/res/values/styles.xml index 24d7905b884..8915c49cbac 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -333,6 +333,12 @@ +