From e28bd7ca8658a3eafa107d7080610e8d68dafa3e Mon Sep 17 00:00:00 2001 From: Hyunyoung Song Date: Wed, 6 Jul 2016 15:10:14 -0700 Subject: [PATCH] Set the all apps nav bar to black. b/29998559 Change-Id: Iba66b390f78fdf25b7eaf912012aabaf7df56476 --- res/layout/all_apps.xml | 9 +++++++++ .../android/launcher3/allapps/AllAppsContainerView.java | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/res/layout/all_apps.xml b/res/layout/all_apps.xml index a0b73f0341..8c2010f899 100644 --- a/res/layout/all_apps.xml +++ b/res/layout/all_apps.xml @@ -99,4 +99,13 @@ + \ No newline at end of file diff --git a/src/com/android/launcher3/allapps/AllAppsContainerView.java b/src/com/android/launcher3/allapps/AllAppsContainerView.java index 868408f14e..79a15b94c6 100644 --- a/src/com/android/launcher3/allapps/AllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/AllAppsContainerView.java @@ -31,6 +31,7 @@ import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewConfiguration; +import android.view.ViewGroup; import android.view.inputmethod.InputMethodManager; import android.widget.ImageView; import android.widget.LinearLayout; @@ -529,6 +530,12 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc mSearchIcon.setLayoutParams(llp); lp.height = height; + + View navBarBg = findViewById(R.id.nav_bar_bg); + ViewGroup.LayoutParams params = navBarBg.getLayoutParams(); + params.height = insets.bottom; + navBarBg.setLayoutParams(params); + navBarBg.setVisibility(View.VISIBLE); } } mSearchContainer.setLayoutParams(lp);