From 565ed4ff69b534812818a2b9aa8789a1aea210eb Mon Sep 17 00:00:00 2001 From: Samuel Fufa Date: Wed, 30 Sep 2020 10:42:07 -0700 Subject: [PATCH] Update Search UI [preview attached to bug] Bug: 169438169 Test: Manual Change-Id: I085f3dd38ac373c1afab82a637ec08715a6e0cc5 --- res/drawable/ic_allapps_search.xml | 2 +- res/layout/all_apps.xml | 6 ++---- res/values/strings.xml | 2 +- .../android/launcher3/allapps/AllAppsSectionDecorator.java | 4 ++-- src/com/android/launcher3/views/ScrimView.java | 2 +- 5 files changed, 7 insertions(+), 9 deletions(-) diff --git a/res/drawable/ic_allapps_search.xml b/res/drawable/ic_allapps_search.xml index 2aeb9479bd..c0e20f1bb8 100644 --- a/res/drawable/ic_allapps_search.xml +++ b/res/drawable/ic_allapps_search.xml @@ -19,6 +19,6 @@ android:viewportHeight="24.0" android:viewportWidth="24.0"> diff --git a/res/layout/all_apps.xml b/res/layout/all_apps.xml index 67ec6641db..0041c9a7c8 100644 --- a/res/layout/all_apps.xml +++ b/res/layout/all_apps.xml @@ -1,5 +1,4 @@ - - - Search apps - Search this phone and more... + Search this phone and more… Loading apps… diff --git a/src/com/android/launcher3/allapps/AllAppsSectionDecorator.java b/src/com/android/launcher3/allapps/AllAppsSectionDecorator.java index 0214c3547d..f2a1f852be 100644 --- a/src/com/android/launcher3/allapps/AllAppsSectionDecorator.java +++ b/src/com/android/launcher3/allapps/AllAppsSectionDecorator.java @@ -101,8 +101,8 @@ public class AllAppsSectionDecorator extends RecyclerView.ItemDecoration { * Handles grouping and drawing of items in the same all apps sections. */ public static class SectionDecorationHandler { - private static final int FILL_ALPHA = (int) (.3f * 255); - private static final int FOCUS_ALPHA = (int) (.8f * 255); + private static final int FILL_ALPHA = 0; + private static final int FOCUS_ALPHA = (int) (.9f * 255); protected RectF mBounds = new RectF(); private final boolean mIsFullWidth; diff --git a/src/com/android/launcher3/views/ScrimView.java b/src/com/android/launcher3/views/ScrimView.java index 77cec80fd7..15ff2f575b 100644 --- a/src/com/android/launcher3/views/ScrimView.java +++ b/src/com/android/launcher3/views/ScrimView.java @@ -42,7 +42,7 @@ import com.android.launcher3.util.Themes; */ public class ScrimView extends View implements Insettable, OnChangeListener { - private static final float SCRIM_ALPHA = .75f; + private static final float SCRIM_ALPHA = .8f; protected final T mLauncher; private final WallpaperColorInfo mWallpaperColorInfo; protected final int mEndScrim;