From d531a08702562da8b9f79563cc56d5358bbf5ee3 Mon Sep 17 00:00:00 2001 From: Maurice Lam Date: Fri, 29 Aug 2014 15:17:42 -0700 Subject: [PATCH] [WifiSetup] Add shadow below header Added shadow for phone portrait and landscape layouts Bug: 17136887 Change-Id: I65dc01d7387812681bbc99d5cc9440714a72ff60 --- res/layout-land/setup_preference.xml | 3 ++- res/layout/setup_wizard_header.xml | 1 + res/values/dimens.xml | 1 + src/com/android/settings/widget/SetupWizardIllustration.java | 3 ++- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/res/layout-land/setup_preference.xml b/res/layout-land/setup_preference.xml index ce655d62e9a..b525b689f32 100644 --- a/res/layout-land/setup_preference.xml +++ b/res/layout-land/setup_preference.xml @@ -25,7 +25,8 @@ android:id="@+id/title_area" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="@drawable/setup_illustration_bg"> + android:background="@drawable/setup_illustration_bg" + android:elevation="@dimen/setup_wizard_title_area_elevation"> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index fcfd5bc90d4..e9a57987de7 100755 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -58,6 +58,7 @@ 56dp 128dp 40dp + 3dp 3dip 6dip diff --git a/src/com/android/settings/widget/SetupWizardIllustration.java b/src/com/android/settings/widget/SetupWizardIllustration.java index acdb5b3636f..717ec352c12 100644 --- a/src/com/android/settings/widget/SetupWizardIllustration.java +++ b/src/com/android/settings/widget/SetupWizardIllustration.java @@ -23,8 +23,8 @@ import android.graphics.Canvas; import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.util.AttributeSet; -import android.util.Log; import android.view.Gravity; +import android.view.ViewOutlineProvider; import android.widget.FrameLayout; import com.android.settings.R; @@ -107,6 +107,7 @@ public class SetupWizardIllustration extends FrameLayout { illustrationHeight -= illustrationHeight % mBaselineGridSize; setPaddingRelative(0, illustrationHeight, 0, 0); } + setOutlineProvider(ViewOutlineProvider.BOUNDS); super.onMeasure(widthMeasureSpec, heightMeasureSpec); }