From 5c1d3e96a1b3b1b0f3c4689a55075dcde2a273f4 Mon Sep 17 00:00:00 2001 From: tmfang Date: Mon, 24 Dec 2018 15:09:23 +0800 Subject: [PATCH] Make filter appear floating in ManagerApplication. Using new layouts to make filter component appear floating on top of the page. The layouts contain the NestedScollView and AppBarLayout. The NestedScrollView was given a layout_behavior which defined the behavior of AppBarLayout. Test: visual Change-Id: Ia76104f80c6b60ac6c8f5937ebface8e9a7238b5 Fixes: 121148001 --- res/layout/manage_applications_apps.xml | 87 ++++++++++++++----------- res/values/dimens.xml | 2 + 2 files changed, 52 insertions(+), 37 deletions(-) diff --git a/res/layout/manage_applications_apps.xml b/res/layout/manage_applications_apps.xml index 765ced63652..c2f58c3394b 100644 --- a/res/layout/manage_applications_apps.xml +++ b/res/layout/manage_applications_apps.xml @@ -14,60 +14,73 @@ limitations under the License. --> - - + android:layout_height="match_parent" + android:fillViewport="true" + settings:layout_behavior="com.android.settings.widget.FloatingAppBarScrollingViewBehavior"> - + android:paddingTop="@dimen/app_bar_height"> - + android:layout_height="match_parent" + android:orientation="vertical" + android:visibility="gone"> - - - + android:layout_height="match_parent"> - + - + - + - + - + - + + + + + + + + + diff --git a/res/values/dimens.xml b/res/values/dimens.xml index b250eff209c..e502f772d6c 100755 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -114,6 +114,8 @@ 182dp 32dp 24dp + + 80dp 88dip