From df055c8655552bf6e0090cf6758d42e48a32e375 Mon Sep 17 00:00:00 2001 From: Doris Ling Date: Thu, 6 Jul 2017 15:21:31 -0700 Subject: [PATCH] Update spacing and background color for condition/suggestion. - changed suggestion/condition and searchbox background color to #F2F2F2 - changed condition card background color to #F8F8F8 - removed Suggestion header - reduced space above condition header/footer by 9dp Fix: 63393599 Test: visual Change-Id: I4317781c93e23c6d019928b9fe9af16177f81c07 Merged-In: I268934e3a573b542480c0b21dbab68b7217295b5 --- res/layout/condition_tile_new_ui.xml | 2 +- res/layout/search_panel.xml | 2 +- res/layout/settings_main_dashboard.xml | 2 +- res/layout/suggestion_condition_footer.xml | 9 +- res/layout/suggestion_condition_header.xml | 130 ++++++++++++--------- res/values/colors.xml | 4 + res/values/styles.xml | 2 +- .../settings/dashboard/DashboardAdapter.java | 50 +++----- .../android/settings/dashboard/DashboardData.java | 12 +- .../settings/dashboard/DashboardAdapterTest.java | 2 +- .../settings/dashboard/DashboardDataTest.java | 17 +-- 11 files changed, 114 insertions(+), 118 deletions(-) diff --git a/res/layout/condition_tile_new_ui.xml b/res/layout/condition_tile_new_ui.xml index 49bf0c06f9..710d2f2ef8 100644 --- a/res/layout/condition_tile_new_ui.xml +++ b/res/layout/condition_tile_new_ui.xml @@ -19,7 +19,7 @@ android:id="@+id/content" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="?android:attr/colorSecondary" + android:background="@color/condition_card_background" android:orientation="vertical"> + android:background="@color/suggestion_condition_background"> + android:background="@color/suggestion_condition_background"> + android:gravity="end"> diff --git a/res/layout/suggestion_condition_header.xml b/res/layout/suggestion_condition_header.xml index a0f73ae995..4519a4693b 100644 --- a/res/layout/suggestion_condition_header.xml +++ b/res/layout/suggestion_condition_header.xml @@ -15,62 +15,80 @@ limitations under the License. --> - - - - - - - - - - - - - - - - - + android:layout_height="wrap_content" + android:orientation="vertical"> + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/values/colors.xml b/res/values/colors.xml index 7f4cb79c94..3e80ab49c0 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -112,4 +112,8 @@ #89000000 + + + #f2f2f2 + #f8f8f8 diff --git a/res/values/styles.xml b/res/values/styles.xml index 43177ffe76..fee7c74017 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -456,7 +456,7 @@