From ea0eb4bb4bd7979c3bfbd0c03bee640da29d0c4a Mon Sep 17 00:00:00 2001 From: Mario Bertschler Date: Wed, 6 Dec 2017 13:03:54 -0800 Subject: [PATCH] Forwarding touch events from floating header to recyclerview. Additionally adds little sidepadding to the tabs buttons and fixes yPos calculations for the scrollbar. Bug: 69966700 Change-Id: I9d236ce7a782090f5d17931839f24b65b4ce7019 --- res/layout/all_apps.xml | 4 ++ res/values/dimens.xml | 1 + .../android/launcher3/BaseRecyclerView.java | 8 ++-- .../allapps/AllAppsContainerView.java | 3 -- .../launcher3/allapps/FloatingHeaderView.java | 42 ++++++++++++++++++- .../views/RecyclerViewFastScroller.java | 2 +- 6 files changed, 51 insertions(+), 9 deletions(-) diff --git a/res/layout/all_apps.xml b/res/layout/all_apps.xml index 6e9109523e..be509edbec 100644 --- a/res/layout/all_apps.xml +++ b/res/layout/all_apps.xml @@ -48,12 +48,16 @@ android:id="@+id/divider" android:layout_width="match_parent" android:layout_height="wrap_content" + android:layout_marginLeft="@dimen/all_apps_tabs_side_padding" + android:layout_marginRight="@dimen/all_apps_tabs_side_padding" android:layout_alignBottom="@+id/tabs" />