From 6ce9759377587e4d08f51f36ad4ea085d76683fa Mon Sep 17 00:00:00 2001 From: Alan Viverette Date: Sun, 27 Apr 2014 18:10:07 -0700 Subject: [PATCH] Add dialog shadows BUG: 13211941 Change-Id: I4d12a512b91b48dd0b869af5b117142bb363dd27 --- .../res/drawable/btn_borderless_quantum.xml | 1 - .../drawable/dialog_background_quantum.xml | 25 +++++++++++++++++++ core/res/res/layout/alert_dialog_quantum.xml | 5 +++- core/res/res/values/dimens_quantum.xml | 2 ++ core/res/res/values/styles_quantum.xml | 20 +++++++-------- core/res/res/values/themes_quantum.xml | 7 +----- 6 files changed, 42 insertions(+), 18 deletions(-) create mode 100644 core/res/res/drawable/dialog_background_quantum.xml diff --git a/core/res/res/drawable/btn_borderless_quantum.xml b/core/res/res/drawable/btn_borderless_quantum.xml index 69a891a67d8bf..2e3c515fcac1a 100644 --- a/core/res/res/drawable/btn_borderless_quantum.xml +++ b/core/res/res/drawable/btn_borderless_quantum.xml @@ -16,7 +16,6 @@ - diff --git a/core/res/res/drawable/dialog_background_quantum.xml b/core/res/res/drawable/dialog_background_quantum.xml new file mode 100644 index 0000000000000..7e5b00305c1b0 --- /dev/null +++ b/core/res/res/drawable/dialog_background_quantum.xml @@ -0,0 +1,25 @@ + + + + + + + + + diff --git a/core/res/res/layout/alert_dialog_quantum.xml b/core/res/res/layout/alert_dialog_quantum.xml index 537162a109a01..80e34cbf5317c 100644 --- a/core/res/res/layout/alert_dialog_quantum.xml +++ b/core/res/res/layout/alert_dialog_quantum.xml @@ -20,7 +20,10 @@ android:id="@+id/parentPanel" android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="vertical"> + android:orientation="vertical" + android:background="@drawable/dialog_background_quantum" + android:translationZ="@dimen/floating_window_z" + android:layout_margin="@dimen/floating_window_margin"> 14sp 14sp + 16dp + 32dp diff --git a/core/res/res/values/styles_quantum.xml b/core/res/res/values/styles_quantum.xml index 0cbb6558020cd..d75e87575b502 100644 --- a/core/res/res/values/styles_quantum.xml +++ b/core/res/res/values/styles_quantum.xml @@ -1019,16 +1019,16 @@ please see styles_device_defaults.xml. @@ -1102,7 +1099,6 @@ please see themes_device_defaults.xml. @@ -1112,7 +1108,6 @@ please see themes_device_defaults.xml.