From 86b1c7d0b171c8167dc098532f2c7e08adcdcfe7 Mon Sep 17 00:00:00 2001 From: Sunny Shao Date: Tue, 27 Nov 2018 16:29:38 +0800 Subject: [PATCH] Refined the Search Bar layout Removed the background color of the search bar. Set the background of the AppBarLayout as transparent. Set the app bar height. Bug: 118886724 Test: manual review Change-Id: I7faedc693ce61d5a5237e8a72909b77b56268a4c --- color-check-baseline.xml | 24 +++++++-- res/layout/search_bar.xml | 57 +++++++++------------- res/layout/settings_homepage_container.xml | 5 +- res/values/dimens.xml | 4 -- res/values/styles.xml | 18 +++++-- res/values/themes.xml | 5 -- 6 files changed, 61 insertions(+), 52 deletions(-) diff --git a/color-check-baseline.xml b/color-check-baseline.xml index 312e5c92503..83c0d53e7c6 100644 --- a/color-check-baseline.xml +++ b/color-check-baseline.xml @@ -2493,7 +2493,7 @@ errorLine2=" ^"> @@ -2509,7 +2509,7 @@ errorLine2=" ^"> @@ -2525,7 +2525,7 @@ errorLine2=" ^"> @@ -2541,7 +2541,23 @@ errorLine2=" ^"> + + + + diff --git a/res/layout/search_bar.xml b/res/layout/search_bar.xml index 9135ebf8f1a..be8aa3b8819 100644 --- a/res/layout/search_bar.xml +++ b/res/layout/search_bar.xml @@ -15,42 +15,33 @@ limitations under the License. --> - - - - - - - - \ No newline at end of file + android:layout_height="@dimen/search_bar_height" + android:background="?android:attr/selectableItemBackground" + android:contentInsetStartWithNavigation="@dimen/search_bar_content_inset" + android:navigationIcon="@drawable/ic_search_24dp"> + + + + diff --git a/res/layout/settings_homepage_container.xml b/res/layout/settings_homepage_container.xml index 02235738731..8d81e824642 100644 --- a/res/layout/settings_homepage_container.xml +++ b/res/layout/settings_homepage_container.xml @@ -23,11 +23,12 @@ + android:layout_height="wrap_content" + android:background="@android:color/transparent" + app:elevation="0dp"> - 72dp 16dp - 16dp - -16dp 48dp 2dp diff --git a/res/values/styles.xml b/res/values/styles.xml index 1b311aabafa..8a92eaaf2f4 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -17,7 +17,7 @@ @@ -400,9 +401,11 @@ + + - -