From 43955abb2fd9648febbdf941ff4b3a5daa376bbf Mon Sep 17 00:00:00 2001 From: Amir Zaidi Date: Mon, 19 Feb 2018 11:29:33 +0100 Subject: [PATCH] Add navigation bar background for pre-Oreo bottom sheet --- res/layout/app_edit_bottom_sheet.xml | 8 ++++++++ res/layout/widgets_bottom_sheet.xml | 8 ++++++++ res/values-v21/styles.xml | 3 --- res/values-v26/styles.xml | 2 ++ res/values/attrs.xml | 3 +++ res/values/styles.xml | 6 +++++- src/com/android/launcher3/widget/WidgetsBottomSheet.java | 9 +++++++++ 7 files changed, 35 insertions(+), 4 deletions(-) diff --git a/res/layout/app_edit_bottom_sheet.xml b/res/layout/app_edit_bottom_sheet.xml index a330f4e4fc..37f39ea824 100644 --- a/res/layout/app_edit_bottom_sheet.xml +++ b/res/layout/app_edit_bottom_sheet.xml @@ -52,4 +52,12 @@ android:layout_marginTop="32dp" android:layout_marginBottom="40dp" /> + + \ No newline at end of file diff --git a/res/layout/widgets_bottom_sheet.xml b/res/layout/widgets_bottom_sheet.xml index e8c6961f43..3059685a62 100644 --- a/res/layout/widgets_bottom_sheet.xml +++ b/res/layout/widgets_bottom_sheet.xml @@ -51,4 +51,12 @@ android:layout_marginTop="45dp" android:layout_marginBottom="40dp"/> + + \ No newline at end of file diff --git a/res/values-v21/styles.xml b/res/values-v21/styles.xml index 4bc92a42c8..927719cc1a 100644 --- a/res/values-v21/styles.xml +++ b/res/values-v21/styles.xml @@ -25,7 +25,4 @@ #00000000 #00000000 - diff --git a/res/values-v26/styles.xml b/res/values-v26/styles.xml index 85c48b033b..33d0309b8c 100644 --- a/res/values-v26/styles.xml +++ b/res/values-v26/styles.xml @@ -21,10 +21,12 @@ diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 7fcdd5b32d..9df29723d3 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -148,4 +148,7 @@ + + + diff --git a/res/values/styles.xml b/res/values/styles.xml index 536a52d6a8..f127ee35e2 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -88,6 +88,7 @@ ?android:attr/textColorSecondaryInverse ?android:attr/textColorPrimaryInverse ?android:attr/textColorSecondaryInverse + @color/all_apps_navbar_color @color/textColorPrimaryInverse @@ -97,7 +98,10 @@ @color/colorAccent -