From df14fffa54285421f99bba7e855ef54451b95bc1 Mon Sep 17 00:00:00 2001 From: Brandon Dayauon Date: Tue, 12 Nov 2024 15:33:10 -0800 Subject: [PATCH] Add elevation to workFAB to create a shadow Unable to use md.sys.elevation.level3 but codesearched and looked it up that this is equivalent to 6dp. bug: 375597648 Test: before: https://drive.google.com/file/d/1fp2l5p4wW2Gf3duC2qQ_brQ-xY0bTnOF/view?usp=sharing after: https://drive.google.com/file/d/19xSAnWJURuwrjhMiywfjNT2vD0G2GoFP/view?usp=sharing Flag: NONE adding elevation Change-Id: I484609b4dc817b6d76701f60da51c3ec89bc8755 --- res/layout/work_mode_fab.xml | 1 + res/values/dimens.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/res/layout/work_mode_fab.xml b/res/layout/work_mode_fab.xml index 46f2d8aa42..e2f0e09eb6 100644 --- a/res/layout/work_mode_fab.xml +++ b/res/layout/work_mode_fab.xml @@ -17,6 +17,7 @@ android:id="@+id/work_mode_toggle" android:layout_height="@dimen/work_fab_height" android:layout_width="wrap_content" + android:elevation="@dimen/work_fab_elevation" android:minHeight="@dimen/work_fab_height" android:gravity="center_vertical" android:background="@drawable/work_mode_fab_background" diff --git a/res/values/dimens.xml b/res/values/dimens.xml index c69778a95d..61d99d743b 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -155,6 +155,7 @@ 56dp 16dp + 6dp 24dp 16dp 4dp