From 9db32f35fbd16973efc7de4c48b7b7dbfcbb1076 Mon Sep 17 00:00:00 2001 From: Fan Zhang Date: Thu, 15 Dec 2016 15:53:14 -0800 Subject: [PATCH] Add Theme and ThemeOverride for new Settings Bug: 33558692 Test: visual inspection The new action bar theme has - light background - colorAccent as textColorPrimary - no elevation Change-Id: I4c1b88410701a35b0e2305d9162ba448d1f5d67b --- core/res/res/values/themes_device_defaults.xml | 14 ++++++++++++++ .../res/layout/settings_with_drawer.xml | 18 +++++++----------- .../drawer/SettingsDrawerActivity.java | 1 - 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/core/res/res/values/themes_device_defaults.xml b/core/res/res/values/themes_device_defaults.xml index a711088f61956..6bd6e1c1ce4a3 100644 --- a/core/res/res/values/themes_device_defaults.xml +++ b/core/res/res/values/themes_device_defaults.xml @@ -742,6 +742,14 @@ easier. @color/accent_device_default_light + + + + diff --git a/packages/SettingsLib/res/layout/settings_with_drawer.xml b/packages/SettingsLib/res/layout/settings_with_drawer.xml index af96d8b25e64d..24a542223b20d 100644 --- a/packages/SettingsLib/res/layout/settings_with_drawer.xml +++ b/packages/SettingsLib/res/layout/settings_with_drawer.xml @@ -17,34 +17,30 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/drawer_layout" android:layout_width="match_parent" - android:layout_height="match_parent" - android:background="?android:attr/statusBarColor"> + android:layout_height="match_parent"> + android:fitsSystemWindows="true"> + android:theme="?android:attr/actionBarTheme"> + android:navigationContentDescription="@*android:string/action_bar_up_description"/> + android:layout_height="wrap_content"/>