From 2153e1c814d571a3666a13df8e0919bb30fdd855 Mon Sep 17 00:00:00 2001 From: Mario Bertschler Date: Tue, 14 Nov 2017 11:32:00 -0800 Subject: [PATCH] Implementation of PredictionRowView. > Enable to use floating for prediction row even without tabs. > Behind ALL_APPS_PREDICTION_ROW_VIEW feature flag. > Expand/Collapse personal/work tabs in stopped intermediate state. Bug: 68713881 Change-Id: I7817e7b7c6f572358f2b9a7a347339a9081708ee --- res/layout/all_apps.xml | 15 ++- res/layout/all_apps_tabs.xml | 2 +- res/values/dimens.xml | 2 + .../allapps/AllAppsContainerView.java | 48 ++++++-- .../allapps/AlphabeticalAppsList.java | 2 +- .../allapps/FloatingHeaderHandler.java | 116 ++++++++++++++---- .../launcher3/allapps/PredictionRowView.java | 61 +++++---- .../android/launcher3/config/BaseFlags.java | 2 + 8 files changed, 181 insertions(+), 67 deletions(-) diff --git a/res/layout/all_apps.xml b/res/layout/all_apps.xml index 832aaeff4d..c42c15c70a 100644 --- a/res/layout/all_apps.xml +++ b/res/layout/all_apps.xml @@ -35,21 +35,27 @@ android:id="@+id/all_apps_header" android:layout_width="match_parent" android:layout_height="wrap_content" - android:clickable="true" - android:paddingTop="30dp" + android:paddingTop="@dimen/all_apps_header_top_padding" + android:clipToPadding="false" android:layout_below="@id/search_container_all_apps" > + android:layout_height="wrap_content" /> + + + android:orientation="horizontal" >