From b4e96b1223122862c742e18d0444c5069a2c90e6 Mon Sep 17 00:00:00 2001 From: Arc Wang Date: Mon, 28 Jun 2021 15:13:14 +0800 Subject: [PATCH] Fix ManageApplications pinned header overlaps content A best UX is to hide pinned header when scrolling up and show pinned header when scrolling down. It needs CoordinatorLayout and CoordinatorLayout.Behavior to control the expected UX. However, we have an outer CoordinatorLayout in CollapsingToolbarBaseActivity, if we use CoordinatorLayout here, the inner one will not pass scroll value to its parent. We will have no overscroll effect problem and tool bar no collapsed problem. This workaround draw pinned header at last and assign background color to cover content. Bug: 187376670 Test: manual visual Settings -> Notifications -> App Settings Settings > Apps > all apps Change-Id: I217fba917d11f63d954369c18e0361112ff981fe --- res/layout/manage_applications_apps.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/res/layout/manage_applications_apps.xml b/res/layout/manage_applications_apps.xml index 7ea88038734..f8f4a76b11a 100644 --- a/res/layout/manage_applications_apps.xml +++ b/res/layout/manage_applications_apps.xml @@ -20,13 +20,6 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - - + +