Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d531a087 authored by Maurice Lam's avatar Maurice Lam
Browse files

[WifiSetup] Add shadow below header

Added shadow for phone portrait and landscape layouts

Bug: 17136887
Change-Id: I65dc01d7387812681bbc99d5cc9440714a72ff60
parent 8007caa4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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">

        <TextView
            android:id="@+id/title"
+1 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/setup_illustration_bg"
    android:elevation="@dimen/setup_wizard_title_area_elevation"
    android:foreground="@drawable/setup_illustration_wifi"
    android:tag="stickyContainer"
    settings:aspectRatio="2.22">
+1 −0
Original line number Diff line number Diff line
@@ -58,6 +58,7 @@
    <dimen name="setup_wizard_card_port_margin_sides">56dp</dimen>
    <dimen name="setup_wizard_card_land_margin_top">128dp</dimen>
    <dimen name="setup_wizard_margin_sides">40dp</dimen>
    <dimen name="setup_wizard_title_area_elevation">3dp</dimen>

    <dimen name="divider_height">3dip</dimen>
    <dimen name="divider_margin_top">6dip</dimen>
+2 −1
Original line number Diff line number Diff line
@@ -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);
    }