From 724581f6eab936a6596787a144ebe7e491ab2151 Mon Sep 17 00:00:00 2001 From: Zemiao Zhu Date: Thu, 17 Sep 2020 18:28:38 -0700 Subject: Add shadow to top toolbar. To prevent visual glitch when entering selection mode, we also need to update scroll flag of searchbar, so that it cannot be scrolled out of screen now. Bug: 168244886 Test: manual Change-Id: Ia968ba2719c00ca9fe036ed5a94d2c29a5e2a143 --- res/layout/directory_app_bar.xml | 13 +++---------- res/layout/directory_header.xml | 1 - res/layout/drawer_layout.xml | 15 ++++----------- 3 files changed, 7 insertions(+), 22 deletions(-) (limited to 'res/layout') diff --git a/res/layout/directory_app_bar.xml b/res/layout/directory_app_bar.xml index 3225ce599..ad80ec201 100644 --- a/res/layout/directory_app_bar.xml +++ b/res/layout/directory_app_bar.xml @@ -34,17 +34,10 @@ android:layout_width="match_parent" android:layout_height="wrap_content"> - + - - @@ -64,7 +57,7 @@ android:layout_height="?android:attr/actionBarSize" android:gravity="center_vertical" android:text="@string/search_bar_hint" - android:textAppearance="@style/SearchBarTitle"/> + android:textAppearance="@style/SearchBarTitle" /> diff --git a/res/layout/directory_header.xml b/res/layout/directory_header.xml index 94c52e978..b7ab7d96a 100644 --- a/res/layout/directory_header.xml +++ b/res/layout/directory_header.xml @@ -18,7 +18,6 @@ android:id="@+id/directory_header" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="@dimen/action_bar_space_margin" android:orientation="vertical"> - - - - - + android:layout_weight="1" />